The Reflector (OSL)

Behold! The reflector is here!

An OSL texture shader to give correct reflections for metals and non-metals, with polarisation, outside IOR, and rough Fresnel options!

This last feature is really interesting as in most renderers how much the material will reflect on the grazing angles or sides of the material will not change with the roughness of the material, resulting in too dark or too bright edges. See the shader page linked below for all the details.

The UI in VRay:
reflector_screen

A comparison with rough Frensel enabled on the left:
reflector_sphere1

A second comparison with rough Fresnel enabled on the left:
reflector_sphere2

A comparison of the reflection amount, left is with the shader:
reflector_sphere1_flt

Page:
http://www.rensheeren.com/blog/osl-reflector/
Download links:
http://www.rensheeren.com/osl/reflector_tex_v002.osl
http://www.rensheeren.com/osl/rhfunctions.h
Save both in the same folder, both are needed for the shader to work. Overwrite rhfunctions.h if asked.

Enjoy! 🙂

Leave a Reply

Your email address will not be published.