http://sidneys77crlfslcr7zmj3msmxchgnxhrxlp3p3kbaswo7twchjnicid.onion/programming/2022/03/23/raytracing.html
                                
                                
                                                                            This new
concept applies the idea of there being some extreme translucency to the nothingness between a ray’s origin and the Shape it intersects with. We’ll begin by adding two new constants, one to define the maximum distance at which an Shape would be visible, and the other as the reciprocal of that. // Fog distance and reciprocal (falloff). constexpr float FOG_INTENSITY_INVERSE = 3000 ; constexpr float FOG_INTENSITY = 1 / FOG_INTENSITY_INVERSE ; Now when we’re...