void tracing for spot lights

This commit is contained in:
zomseffen 2025-01-14 16:01:18 +01:00
parent dd568a75e3
commit 4c4b8288d5
5 changed files with 55 additions and 81 deletions
src/scene

View file

@ -82,7 +82,7 @@ impl Scene {
let shade = (rng.gen_range(0..25) as f32) / 100.0;
let cube = Cube {
pos: vec3(10.0, 10.0, 10.0),
color: vec3(shade, 1.0, shade),
color: vec3(1.0, 1.0, 0.0),
tex_coord: vec2(0.0, 0.0)
};