mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +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);
|
||||
|
@ -95,6 +95,7 @@ struct Ray
|
||||
{
|
||||
vec3 origin;
|
||||
vec3 direction;
|
||||
vec3 inv_direction;
|
||||
};
|
||||
|
||||
struct hitInfo
|
||||
|
Reference in New Issue
Block a user