Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 806 vs 810 for /trunk/Source Code/Geometry/Material/Material.cpp

Diff revisions: vs.
  @@ -361,12 +361,14 @@
361 361 if (Config::Profile::DISABLE_SHADING) {
362 362 shader = g_PassThroughMaterialShaderName;
363 363 setShaderProgramInternal(shader, renderStage, computeOnAdd);
364 - return false;;
364 + return false;
365 365 }
366 366
367 367 if (depthPassShader && renderStage == RenderStage::SHADOW) {
368 368 setShaderDefines(renderStage, "SHADOW_PASS");
369 369 shader += ".Shadow";
370 + } else {
371 + setShaderDefines(renderStage, "DEPTH_PASS");
370 372 }
371 373
372 374 // What kind of effects do we need?