raytracing - Raytracer -- Why are there speckles on the edges of my spheres? -
my raytracer generating following image:
i've checked normals many times , i'm quite confident not problem. else have ideas?
what @alnitak said in comments. speckles appear because of self intersection. can occur during implementation of shadows well. if have implemented shadows check if shadow ray generates point on surface, if add small constant example "0.001" generate ray little further surface avoid self-intersection.
Comments
Post a Comment