mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
+ | Fixing
This commit is contained in:
@ -186,9 +186,10 @@ vec3 pathtrace(Ray ray, inout uint rng_state)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
float miss_condition = float(hit.obj_index == -1);
|
||||
light += miss_condition * transmittance * GetEnvironmentLight(ray);
|
||||
|
||||
|
||||
float p = max(color.r, max(color.g, color.b));
|
||||
float rr_continue = float(randomValue(rng_state) <= p);
|
||||
|
||||
|
@ -168,7 +168,7 @@ hitInfo traceRay(Ray ray)
|
||||
hitInfo hitScene;
|
||||
hitInfo hit;
|
||||
|
||||
#if 0
|
||||
#if 1
|
||||
for (int i = 0; i < 10; i++) // portal ray
|
||||
{
|
||||
hitBVH = traverseBVHs(ray);
|
||||
@ -179,7 +179,6 @@ hitInfo traceRay(Ray ray)
|
||||
break ;
|
||||
ray = portalRay(ray, hit);
|
||||
ray.inv_direction = (1.0 / ray.direction);
|
||||
return (hit);
|
||||
}
|
||||
#else
|
||||
hitBVH = traverseBVHs(ray);
|
||||
|
Reference in New Issue
Block a user