Redirect Shader: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Updated document, added example images. |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[[ | [[File:Redirect_00_GUI.png|470 px | Redirect Shader]] | ||
== Overview == | |||
The Redirect Shader "tricks" the shaders which are attached to it into thinking that the surface normal points along the positive X axis, positive Y axis or positive Z axis. Basically it modifies the shading state variable for the surface normal before calling the shaders, so that they think they are displacing a surface with a different normal. Any shader that displaces along the normal will then displace along these directions. Displacement in the negative X,Y,Z directions is accomplished if the displacement shader displaces negatively (e.g. if it indents a surface rather than raising it). | |||
'''Settings:''' | |||
*'''Name:''' This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Redirect shader nodes in a project. | |||
*'''Enable:''' When checked, the node is active and the settings below will affect the surface. When unchecked, the node is ignored. | |||
*'''X shader:''' The shader or function nodes assigned to this setting, will think that the surface normal points along the X axis. | |||
*'''Y shader:''' The shader or function nodes assigned to this setting, will think that the surface normal points along the Y axis. | |||
*'''Z shader:''' The shader or function nodes assigned to this setting, will think that the surface normal points along the Z axis. | |||
{| | |||
|- | |||
| [[File:Redirect_01_XYZFunctions.jpg|800 px | Power fractal shader assigned to each of the X, Y, and Z axis.]] | |||
|- | |||
| [[File:Redirect_02_XYZFunctions.jpg|800 px | Power fractal shader assigned to XYZ shader inputs.]] | |||
|} | |||
<br /n> | |||
[[Category:Displacement Shader]] | [[Category:Displacement Shader]] | ||
Latest revision as of 23:27, 20 July 2021
Overview
The Redirect Shader "tricks" the shaders which are attached to it into thinking that the surface normal points along the positive X axis, positive Y axis or positive Z axis. Basically it modifies the shading state variable for the surface normal before calling the shaders, so that they think they are displacing a surface with a different normal. Any shader that displaces along the normal will then displace along these directions. Displacement in the negative X,Y,Z directions is accomplished if the displacement shader displaces negatively (e.g. if it indents a surface rather than raising it).
Settings:
- Name: This setting allows you to apply a descriptive name to the node, which can be helpful when using multiple Redirect shader nodes in a project.
- Enable: When checked, the node is active and the settings below will affect the surface. When unchecked, the node is ignored.
- X shader: The shader or function nodes assigned to this setting, will think that the surface normal points along the X axis.
- Y shader: The shader or function nodes assigned to this setting, will think that the surface normal points along the Y axis.
- Z shader: The shader or function nodes assigned to this setting, will think that the surface normal points along the Z axis.
|

