Move Sun to visibility

This commit is contained in:
numzero 2025-03-29 11:02:57 +03:00
parent 84b8e9c9a5
commit c39a871bf8

View File

@ -93,7 +93,7 @@ fn trace_fragment(in: Varying) -> vec3f {
} }
} }
if (sphere == -1) { if (sphere == -1) {
let theta = dot(ray, normalize(vec3(0., 0., 1.))); let theta = dot(ray, normalize(vec3(1., 2., 1.)));
var env: vec3f; // in kilonits var env: vec3f; // in kilonits
const ILLUMINANCE_LUX = 1e5; const ILLUMINANCE_LUX = 1e5;