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

Go to the source code of this file.

Classes

struct  ToonBsdf
 

Functions

ccl_device int bsdf_diffuse_toon_setup (ToonBsdf *bsdf)
 
ccl_device bool bsdf_toon_merge (const ShaderClosure *a, const ShaderClosure *b)
 
ccl_device float3 bsdf_toon_get_intensity (float max_angle, float smooth, float angle)
 
ccl_device float bsdf_toon_get_sample_angle (float max_angle, float smooth)
 
ccl_device float3 bsdf_diffuse_toon_eval_reflect (const ShaderClosure *sc, const float3 I, const float3 omega_in, float *pdf)
 
ccl_device float3 bsdf_diffuse_toon_eval_transmit (const ShaderClosure *sc, const float3 I, const float3 omega_in, float *pdf)
 
ccl_device int bsdf_diffuse_toon_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)
 
ccl_device int bsdf_glossy_toon_setup (ToonBsdf *bsdf)
 
ccl_device float3 bsdf_glossy_toon_eval_reflect (const ShaderClosure *sc, const float3 I, const float3 omega_in, float *pdf)
 
ccl_device float3 bsdf_glossy_toon_eval_transmit (const ShaderClosure *sc, const float3 I, const float3 omega_in, float *pdf)
 
ccl_device int bsdf_glossy_toon_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 ToonBsdf ToonBsdf
 

Function Documentation

◆ bsdf_diffuse_toon_eval_reflect()

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

◆ bsdf_diffuse_toon_eval_transmit()

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

Definition at line 108 of file bsdf_toon.h.

References make_float3.

Referenced by bsdf_eval().

◆ bsdf_diffuse_toon_sample()

ccl_device int bsdf_diffuse_toon_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_diffuse_toon_setup()

ccl_device int bsdf_diffuse_toon_setup ( ToonBsdf bsdf)

◆ bsdf_glossy_toon_eval_reflect()

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

◆ bsdf_glossy_toon_eval_transmit()

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

Definition at line 193 of file bsdf_toon.h.

References make_float3.

Referenced by bsdf_eval().

◆ bsdf_glossy_toon_sample()

ccl_device int bsdf_glossy_toon_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_glossy_toon_setup()

ccl_device int bsdf_glossy_toon_setup ( ToonBsdf bsdf)

◆ bsdf_toon_get_intensity()

ccl_device float3 bsdf_toon_get_intensity ( float  max_angle,
float  smooth,
float  angle 
)

◆ bsdf_toon_get_sample_angle()

ccl_device float bsdf_toon_get_sample_angle ( float  max_angle,
float  smooth 
)

◆ bsdf_toon_merge()

ccl_device bool bsdf_toon_merge ( const ShaderClosure a,
const ShaderClosure b 
)

Definition at line 58 of file bsdf_toon.h.

References Freestyle::a, isequal_float3(), ToonBsdf::size, and ToonBsdf::smooth.

Referenced by bsdf_merge().

Variable Documentation

◆ ToonBsdf