Simstim

VEX Dictionary / fresnel

fresnel

Calculates reflected and transmitted light fractions from an incident ray, normal, and eta, optionally outputting reflection and refraction vectors.

group: shadingshadingreflect

Available in every context

Usage

void fresnel(vector i, vector n, float eta, float &kr, float &kt)
void fresnel(vector i, vector n, float eta, float &kr, float &kt, vector &R, vector &T)

Examples

No worked examples yet.

Signatures (from vcc -X)

Related

Full SideFX documentation ↗