I am getting this weird interference pattern from my shader on just a couple of sides of the cube. The shader is ray marching a volume and generally works, but this happens with a particular alignment of the directional light. I'm wondering if somebody has experience with what causes this type of pattern? (Ignore the banding, it's the circular patterns that I'm wondering about.)
#Circular interference pattern
1 messages · Page 1 of 1 (latest)
I'm pretty sure this comes from floating point approximation.
IDK what math you're doing here, but it looks like a comparison check ( if x<y or something) and from one pixel to the other one of the compared values varies a little due to preceding floating point calculations.