Fresnel Shader or similar effect

Yes, just add a uniform adding it scaled by the fresnel value

Notice it depends on how you want to use it, by adding it earlier to diffuseColor instead gl_FragColor (the final output) it would be shaded/controlled by the light system, gl_FragColor makes it independent of it.

7 Likes