VEX Dictionary / frontface
frontface
Returns the normal N, negated when needed according to its dot product with the incident vector I or a reference normal.
group: shadingshading
Available in every context
Usage
vector frontface(vector N, vector I)
vector frontface(vector N, vector I, vector Nref)
Examples
No worked examples yet.
Signatures (from vcc -X)
vector frontface(vector, vector)displace, fog, light, shadow, surfacevector frontface(vector, vector, vector)all contexts