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 @@ -263,13 +263,13 @@ for (uint i=1u; i!=vertex_depth; i++)
263
263
264
264
// TODO: improve ray offset (maybe using smooth normal wouldn't be a sin)
265
265
const vec3 absGeomNormal = abs (geomNormal);
266
- geomNormal /= max (max (absGeomNormal.x,absGeomNormal.y),absGeomNormal.z);
266
+ geomNormal /= max (max (absGeomNormal.x,absGeomNormal.y),absGeomNormal.z)* 96 .f ;
267
267
uint offset = 0u;
268
268
for (uint i= 0u; i< maxRaysToGen; i++ )
269
269
if (maxT[i]!= 0 .f)
270
270
{
271
271
nbl_glsl_ext_RadeonRays_ray newRay;
272
- newRay.origin = origin+ uintBitsToFloat(floatBitsToUint(direction[i] )^ floatBitsToUint(dot (geomNormal,direction[i]))& 0x80000000u)/ 96 .f ;
272
+ newRay.origin = origin+ uintBitsToFloat(floatBitsToUint(geomNormal )^ floatBitsToUint(dot (geomNormal,direction[i]))& 0x80000000u);
273
273
newRay.maxT = maxT[i];
274
274
newRay.direction = direction[i];
275
275
newRay.time = packOutPixelLocation(outPixelLocation);
You can’t perform that action at this time.
0 commit comments