Unity Products:Amplify Shader Editor/Reflect
The Reflect node calculates a reflection vector from a given Incident vector and surface Normal vector. Internally the reflected vector is calculated via the expression Incident - 2 * Normal * Dot(Incident•Normal) Please note that the Normal vector should be normalized since this way the resulting reflected vector will have the same length as the original Incident one.
A cast is done to match the input type with the most amount of channels if Normal and Incident vectors have different channel amounts. This will also determine the reflected vector size.
|Node Parameter||Description||Default Value|
|Incident||Incident vector. Only visible if the respective input port is not connected.||0,0,0,0|
|Normal||Normal vector ( should be normalized beforehand ). Only visible if the respective input port is not connected.||0,0,0,0|
|Incident||Incident vector.||Float4 |
|Normal||Normal vector ( should be normalized beforehand ).||Float4 |