faceforward - HLSL
Tests if a face is visible. Returns -n * sign(dot(i, ng))
Syntax
ret faceforward(n, i, ng) |
Where:
Name |
In/Out |
Template Type |
Component Type |
Size |
n |
in |
vector |
float |
any |
i |
in |
vector |
float |
same dimension(s) as input n |
ng |
in |
vector |
float |
same dimensions as input n |
ret |
out |
vector |
float |
same dimensions as input n |
Minimum Shader Version
This intrinsic function is supported in the following (or above) shader versions:
Vertex Shader |
Pixel Shader |
vs_1_1 |
ps_1_4 |
See Also
HLSL Intrinsic Functions