raytracing - Raytracer -- Why are there speckles on the edges of my spheres? -


my raytracer generating following image: enter image description here

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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -