Skip to content
0.2.0-dev Download ZIP
11 lines ·860 B Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="VisualShaderNodeFaceForward" inherits="VisualShaderNodeVectorBase" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
3 <brief_description>
4 Returns the vector that points in the same direction as a reference vector within the visual shader graph.
5 </brief_description>
6 <description>
7 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.
8 </description>
9 <tutorials>
10 </tutorials>
11</class>