Day 8 : More shadows

Categories AShaderEveryDay

        Today, I followed Inigo Quilez‘s explanations about soft shadows then add them. Finally, I also add a fog attenuation which is given by  exp(-pos * k) where pos is actual pixel position and k a coefficient to adjust the fog strength.


Shadow upgrade
(click on the shader box title to see the code )

No Comments

Leave a Reply