Archive | Portfolio | Shaders

Fresnel Shader Pack

As described in my post The Basics of Fresnel Shading, here is a pack of shaders which all use the Fresnel effect (except for the pure reflection shader, included for contrast between Fresnel and regular reflections).

Here's how it works:

The shaders all use the “Empirical Approximation” of Fresnel presented in the CG Tutorial from NVidia. The results are very easy to customize, but are not physically correct. Each material gives you a slider that controls how strong the Fresnel effect is, and any reflections come from Cube maps, which you can render from static scenes, or render on the fly for real time reflections.

All the code is MIT Licensed (included in the shader files themselves).

A web demo of this project is available here

Download the unitypackage here

Screen 1

Know something that would make these shaders better? Send me a message on Twitter