Skip to content

Commit 330bde8

Browse files
committed
LightProbe : Use diffuse lighting only when capturing light probes.
1 parent 07ea10d commit 330bde8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

h3d/scene/pbr/Renderer.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ class Renderer extends h3d.scene.Renderer {
481481
ctx.setGlobal("ldrMap", textures.ldr);
482482
ctx.setGlobal("velocity", textures.velocity);
483483
ctx.setGlobal("global.time", ctx.time);
484+
ctx.setGlobal("DIFFUSE_ONLY", renderMode == LightProbe);
484485
if(ctx.camera != null){
485486
ctx.setGlobal("camera.position", ctx.camera.pos);
486487
ctx.setGlobal("camera.inverseViewProj", ctx.camera.getInverseViewProj());

0 commit comments

Comments
 (0)