mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2026-03-03 19:02:15 +01:00
~ | Fix mat index
This commit is contained in:
@ -105,7 +105,7 @@ Ray newRay(hitInfo hit, Ray ray, inout uint rng_state)
|
||||
GPUMaterial mat;
|
||||
|
||||
obj = objects[hit.obj_index];
|
||||
mat = materials[obj.mat_index];
|
||||
mat = materials[hit.mat_index];
|
||||
|
||||
if (mat.type == 0)
|
||||
return (lambertRay(hit, ray, mat, rng_state));
|
||||
|
||||
Reference in New Issue
Block a user