We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07ea10d commit 330bde8Copy full SHA for 330bde8
h3d/scene/pbr/Renderer.hx
@@ -481,6 +481,7 @@ class Renderer extends h3d.scene.Renderer {
481
ctx.setGlobal("ldrMap", textures.ldr);
482
ctx.setGlobal("velocity", textures.velocity);
483
ctx.setGlobal("global.time", ctx.time);
484
+ ctx.setGlobal("DIFFUSE_ONLY", renderMode == LightProbe);
485
if(ctx.camera != null){
486
ctx.setGlobal("camera.position", ctx.camera.pos);
487
ctx.setGlobal("camera.inverseViewProj", ctx.camera.getInverseViewProj());
0 commit comments