mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02: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