Blender  V3.3
Functions
bsdf_reflection.h File Reference

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN ccl_device int bsdf_reflection_setup (ccl_private MicrofacetBsdf *bsdf)
 
ccl_device float3 bsdf_reflection_eval_reflect (ccl_private const ShaderClosure *sc, const float3 I, const float3 omega_in, ccl_private float *pdf)
 
ccl_device float3 bsdf_reflection_eval_transmit (ccl_private const ShaderClosure *sc, const float3 I, const float3 omega_in, ccl_private float *pdf)
 
ccl_device int bsdf_reflection_sample (ccl_private const ShaderClosure *sc, float3 Ng, float3 I, float3 dIdx, float3 dIdy, float randu, float randv, ccl_private float3 *eval, ccl_private float3 *omega_in, ccl_private float3 *domega_in_dx, ccl_private float3 *domega_in_dy, ccl_private float *pdf)
 

Function Documentation

◆ bsdf_reflection_eval_reflect()

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

Definition at line 21 of file bsdf_reflection.h.

References make_float3.

Referenced by bsdf_eval().

◆ bsdf_reflection_eval_transmit()

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

Definition at line 30 of file bsdf_reflection.h.

References make_float3.

Referenced by bsdf_eval().

◆ bsdf_reflection_sample()

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

Definition at line 39 of file bsdf_reflection.h.

References ccl_private, blender::math::dot(), I, LABEL_REFLECT, LABEL_SINGULAR, make_float3, and N.

Referenced by bsdf_sample().

◆ bsdf_reflection_setup()

CCL_NAMESPACE_BEGIN ccl_device int bsdf_reflection_setup ( ccl_private MicrofacetBsdf bsdf)

Definition at line 15 of file bsdf_reflection.h.

References CLOSURE_BSDF_REFLECTION_ID, and SD_BSDF.

Referenced by svm_node_closure_bsdf(), and svm_node_glass_setup().