Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 852 vs 853 for /trunk/Source Code/Rendering/RenderPass/RenderPass.cpp

Diff revisions: vs.
  @@ -265,14 +265,14 @@
265 265
266 266 //We only care about the first parameter as it will determine the properties for the rest of the stages
267 267 switch (stage) {
268 - case RenderStage::REFLECTION: {
268 + case RenderStage::REFLECTION: { //Both planar and cube
269 269 // max reflective nodes and an extra buffer for environment maps
270 - maxPasses = Config::MAX_REFLECTIVE_NODES_IN_VIEW + 1;
270 + maxPasses = Config::MAX_REFLECTIVE_NODES_IN_VIEW * 2+ 1;
271 271 maxStages = 6u; // number of cube faces
272 272 }; break;
273 - case RenderStage::REFRACTION: {
273 + case RenderStage::REFRACTION: { //Both planar and cube
274 274 // max reflective nodes and an extra buffer for environment maps
275 - maxPasses = Config::MAX_REFRACTIVE_NODES_IN_VIEW + 1;
275 + maxPasses = Config::MAX_REFRACTIVE_NODES_IN_VIEW * 2 + 1;
276 276 maxStages = 1u;
277 277 } break;
278 278 case RenderStage::SHADOW: {