Blender  V2.93
Classes | Functions | Variables
bsdf_principled_sheen.h File Reference

Go to the source code of this file.

Classes

struct  PrincipledSheenBsdf
 

Functions

ccl_device_inline float calculate_avg_principled_sheen_brdf (float3 N, float3 I)
 
ccl_device float3 calculate_principled_sheen_brdf (float3 N, float3 V, float3 L, float3 H, float *pdf)
 
ccl_device int bsdf_principled_sheen_setup (const ShaderData *sd, PrincipledSheenBsdf *bsdf)
 
ccl_device float3 bsdf_principled_sheen_eval_reflect (const ShaderClosure *sc, const float3 I, const float3 omega_in, float *pdf)
 
ccl_device float3 bsdf_principled_sheen_eval_transmit (const ShaderClosure *sc, const float3 I, const float3 omega_in, float *pdf)
 
ccl_device int bsdf_principled_sheen_sample (const ShaderClosure *sc, float3 Ng, float3 I, float3 dIdx, float3 dIdy, float randu, float randv, float3 *eval, float3 *omega_in, float3 *domega_in_dx, float3 *domega_in_dy, float *pdf)
 

Variables

CCL_NAMESPACE_BEGIN typedef ccl_addr_space struct PrincipledSheenBsdf PrincipledSheenBsdf
 

Function Documentation

◆ bsdf_principled_sheen_eval_reflect()

ccl_device float3 bsdf_principled_sheen_eval_reflect ( const ShaderClosure sc,
const float3  I,
const float3  omega_in,
float pdf 
)

Definition at line 73 of file bsdf_principled_sheen.h.

References calculate_principled_sheen_brdf(), dot(), fmaxf, H, I, L, M_1_PI_F, make_float3, N, normalize(), and V.

Referenced by bsdf_eval().

◆ bsdf_principled_sheen_eval_transmit()

ccl_device float3 bsdf_principled_sheen_eval_transmit ( const ShaderClosure sc,
const float3  I,
const float3  omega_in,
float pdf 
)

Definition at line 95 of file bsdf_principled_sheen.h.

References make_float3.

Referenced by bsdf_eval().

◆ bsdf_principled_sheen_sample()

ccl_device int bsdf_principled_sheen_sample ( const ShaderClosure sc,
float3  Ng,
float3  I,
float3  dIdx,
float3  dIdy,
float  randu,
float  randv,
float3 eval,
float3 omega_in,
float3 domega_in_dx,
float3 domega_in_dy,
float pdf 
)

◆ bsdf_principled_sheen_setup()

ccl_device int bsdf_principled_sheen_setup ( const ShaderData sd,
PrincipledSheenBsdf bsdf 
)

◆ calculate_avg_principled_sheen_brdf()

ccl_device_inline float calculate_avg_principled_sheen_brdf ( float3  N,
float3  I 
)

Definition at line 35 of file bsdf_principled_sheen.h.

References dot(), I, N, and schlick_fresnel().

Referenced by bsdf_principled_sheen_setup().

◆ calculate_principled_sheen_brdf()

ccl_device float3 calculate_principled_sheen_brdf ( float3  N,
float3  V,
float3  L,
float3  H,
float pdf 
)

Variable Documentation

◆ PrincipledSheenBsdf