summaryrefslogtreecommitdiff
path: root/doc/classes/VisualShaderNodeFaceForward.xml
blob: cd2b3972b7d4bc763e909bc63b090eba75eb4c4d (plain)
1
2
3
4
5
6
7
8
9
10
11
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VisualShaderNodeFaceForward" inherits="VisualShaderNodeVectorBase" version="4.0">
	<brief_description>
		Returns the vector that points in the same direction as a reference vector within the visual shader graph.
	</brief_description>
	<description>
		Translates to [code]faceforward(N, I, Nref)[/code] in the shader language. The function has three vector parameters: [code]N[/code], the vector to orient, [code]I[/code], the incident vector, and [code]Nref[/code], the reference vector. If the dot product of [code]I[/code] and [code]Nref[/code] is smaller than zero the return value is [code]N[/code]. Otherwise, [code]-N[/code] is returned.
	</description>
	<tutorials>
	</tutorials>
</class>