Simstim

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)

Related

Full SideFX documentation ↗