mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +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;
|
GPUMaterial mat;
|
||||||
|
|
||||||
obj = objects[hit.obj_index];
|
obj = objects[hit.obj_index];
|
||||||
mat = materials[obj.mat_index];
|
mat = materials[hit.mat_index];
|
||||||
|
|
||||||
if (mat.type == 0)
|
if (mat.type == 0)
|
||||||
return (lambertRay(hit, ray, mat, rng_state));
|
return (lambertRay(hit, ray, mat, rng_state));
|
||||||
|
Reference in New Issue
Block a user