File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
examples_tests/22.RaytracedAO Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ void main()
44
44
const nbl_glsl_ext_RadeonRays_ray ray = sourceRays[gl_GlobalInvocationID.x];
45
45
46
46
const uint batchInstanceGUID = intersection.shapeid;
47
- const uint invalidID = 0x80000000u ;
47
+ const uint invalidID = 0xffffffffu ;
48
48
hit = batchInstanceGUID!=invalidID;
49
49
50
50
const uvec2 outPixelLocation = unpackOutPixelLocation(ray.time);
@@ -76,7 +76,7 @@ void main()
76
76
const nbl_glsl_MC_oriented_material_t material = nbl_glsl_MC_material_data_t_getOriented(batchInstanceData.material,frontfacing);
77
77
emissive = nbl_glsl_MC_oriented_material_t_getEmissive(material);
78
78
79
- const bool _continue = vertex_depth!=MAX_PATH_DEPTH && ray.maxT==FLT_MAX ; // last vertex or was a NEE path
79
+ const bool _continue = vertex_depth!=MAX_PATH_DEPTH && ray.maxT==nbl_glsl_FLT_MAX ; // last vertex or was a NEE path
80
80
if (_continue)
81
81
{
82
82
// if we ever support spatially varying emissive, we'll need to hoist barycentric computation and UV fetching to the position fetching
You can’t perform that action at this time.
0 commit comments