Hi everybody!
I have some OSL shaders lined up for you which I'll post here one by one as soon as the page for the shader is done.
To kick this off I present to you...
The Reflector!
Links
Page:
http://www.rensheeren.com/blog/osl-reflector/
Download:
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.
Features
- Metals and non-metals. Uses complex Fresnel for metals and switches to non-complex for non-metals for quicker rendering.
- Polarisation for both, should you want to play around with that.
- Outside medium IOR, for example for objects under water.
- Aaaand... rough Fresnel!
------ EDIT ------
I've moved this post here!
Here's a list of all the shaders posted in this thread instead.
Overview page on my site here.
Reflector
Advanced reflections.
ShowUDIM
Shows where you are in UV/UDIM space! In text!
Merge2
Merge or blend two inputs using several different operations.
CamMapScale
A fix for the annoying CamMapPerPixel scaling feature in max.
MixNormalMaps
Blend normal maps together… correctly.
ChannelSwitcher
Shuffle or mix channels.
UVTransform
Transform textures by moving the UV space around.
ArchGlass
Simulate multi-paned window glass with only a single-sided plane object.
I have some OSL shaders lined up for you which I'll post here one by one as soon as the page for the shader is done.
To kick this off I present to you...
The Reflector!
Links
Page:
http://www.rensheeren.com/blog/osl-reflector/
Download:
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.
Features
- Metals and non-metals. Uses complex Fresnel for metals and switches to non-complex for non-metals for quicker rendering.
- Polarisation for both, should you want to play around with that.
- Outside medium IOR, for example for objects under water.
- Aaaand... rough Fresnel!
------ EDIT ------
I've moved this post here!
Here's a list of all the shaders posted in this thread instead.
Overview page on my site here.
Reflector
Advanced reflections.
ShowUDIM
Shows where you are in UV/UDIM space! In text!
Merge2
Merge or blend two inputs using several different operations.
CamMapScale
A fix for the annoying CamMapPerPixel scaling feature in max.
MixNormalMaps
Blend normal maps together… correctly.
ChannelSwitcher
Shuffle or mix channels.
UVTransform
Transform textures by moving the UV space around.
ArchGlass
Simulate multi-paned window glass with only a single-sided plane object.
Comment