Skip to content

Commit 64f1ebd

Browse files
increase error bound on ray starts
1 parent 94b11a7 commit 64f1ebd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples_tests/22.RaytracedAO/raygen.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ void main()
217217
const bool validRay = any(greaterThan(throughput.rgb,vec3(FLT_MIN)));
218218
if (validRay)
219219
{
220-
const float err = 1.0/256.0; // TODO: improve ray offsets
220+
const float err = 1.0/64.0; // TODO: improve ray offsets
221221
rays[realOutputID].origin = worldPosition+direction*err;
222222
rays[realOutputID].maxT = max(maxT-err,0.0);
223223
rays[realOutputID].direction = direction;

0 commit comments

Comments
 (0)