INTRODUCTION

The FresnelFXShader is a facing ratio script fx shader. It works by calculating the dot product of the camera and surface normals that results in a grayscale intensity map of the facing surface direction.


INCLUDED IN THIS ARCHIVE

Fresnel.lua
This is the original script saved as a text file that you can reference.

FresnelFXShader_Test.s3d
A test scene with a simple wine glass with the shader applied to it. Save out any rendered images in Photoshop format with layers to see the Fresnel layer in the resulting file.

FresnelFXShader.sfx
A saved ScriptFX shader for your resource library. Create a new folder in your "Resource Libraries/FX" folder named "ScriptFXLibrary" (or whatever you wish). Place this .sfx file in that folder and the script should be available to you in the resources palette.

wineGlass_original.jpg
A rendering of the test file without the fresnel layer applied

wineGlass_withFresnel.jpg
A rendering of the test file with the fresnel applied in Photoshop with a few blending modes.

Feel free to visit the Scripting forum at Stratacafe.com to ask any questions or for more information on this shader.

Enjoy!!

Jon Bradley


LICENSE

This work is licensed under the Creative Commons Attribution 2.5 License.
http://creativecommons.org/licenses/by/2.5/legalcode
