Envmap visibility for path tracer

This commit is contained in:
luboslenco
2020-04-22 16:08:12 +02:00
parent 78a75f64e1
commit 4d52eff720
3 changed files with 6 additions and 4 deletions
+1
View File
@@ -84,6 +84,7 @@ class RenderPathRaytrace {
f32[18] = helpMat._32;
f32[19] = helpMat._33;
f32[20] = Scene.active.world.probe.raw.strength;
if (!Context.showEnvmap) f32[20] = -f32[20];
// f32[21] = Context.showEnvmap ? 1.0 : 0.0;
// var right = cam.rightWorld().normalize();
// f32[21] = right.x;