godot/doc/classes/VisualShaderNodeFaceForward.xml

12 lines
834 B
XML
Raw Normal View History

2019-04-15 12:49:41 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VisualShaderNodeFaceForward" inherits="VisualShaderNodeVectorBase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
2019-04-15 12:49:41 +00:00
<brief_description>
Returns the vector that points in the same direction as a reference vector within the visual shader graph.
2019-04-15 12:49:41 +00:00
</brief_description>
<description>
2021-03-18 11:04:28 +00:00
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.
2019-04-15 12:49:41 +00:00
</description>
<tutorials>
</tutorials>
</class>