mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
+ | Patching opti's problem
This commit is contained in:
@ -186,6 +186,7 @@ vec3 pathtrace(Ray ray, inout uint rng_state)
|
||||
break;
|
||||
|
||||
ray = newRay(hit, ray, rng_state);
|
||||
ray.inv_direction = 1.0 / ray.direction;
|
||||
}
|
||||
|
||||
return (color * light);
|
||||
|
Reference in New Issue
Block a user