Simstim

VEX Dictionary / sample_bsdf

sample_bsdf

Draws a random outgoing ray direction and color weight from a BSDF given a viewing direction, for PBR shading.

group: bsdfpbrbsdfsampling

Available in every context

Usage

void sample_bsdf(bsdf F, vector viewer_u, vector &dir, vector &eval, int &type, float sx, float sy, ...)
void sample_bsdf(bsdf F, vector viewer_u, vector &dir, vector &eval, int &type, float sx, float sy, int mask, ...)
void sample_bsdf(bsdf F; vector viewer_u; vector &dir; vector &eval; float &pdf; int &type; float sx, float sy; ... )
void sample_bsdf(bsdf F, vector viewer_u, vector &dir, vector &eval, float &pdf, int &type, float sx, float sy, int mask, ...)
void sample_bsdf(bsdf b; vector viewer_u; vector normal_v; int &flags; vector &dir; vector &eval; float &pdf; int &type; float sx; float sy; int mask; ... )

Examples

No worked examples yet.

Signatures (from vcc -X)

Related

Full SideFX documentation ↗