11#include "gpu_shader_codegen_lib.glsl"
59 light.
type = LIGHT_DIFFUSE;
100 eval.throughput = eval.pdf = 0.25f *
M_1_PI;
120 thickness.
value() != 0.0f;
145 thickness.
value() != 0.0f;
149 light.
type = sphere_with_thickness ? LIGHT_TRANSLUCENT_WITH_THICKNESS : LIGHT_DIFFUSE;
152 if (sphere_with_thickness) {
ccl_device_inline float cos_theta(const float3 w)
ThicknessMode mode() const
LightProbeRay bxdf_diffuse_lightprobe(float3 N)
float bxdf_translucent_perceived_roughness()
ClosureLight bxdf_diffuse_light(ClosureUndetermined cl, float3 V)
BsdfEval bxdf_translucent_eval(float3 N, float3 L, Thickness thickness)
float bxdf_diffuse_perceived_roughness()
BsdfEval bxdf_diffuse_eval(float3 N, float3 L)
LightProbeRay bxdf_translucent_lightprobe(float3 N, Thickness thickness)
BsdfSample bxdf_translucent_sample(float3 rand, Thickness thickness)
BsdfSample bxdf_diffuse_sample(const float3 rand_cylinder)
Ray bxdf_translucent_ray_amend(ClosureUndetermined cl, float3, Ray ray, Thickness thickness)
ClosureLight bxdf_translucent_light(ClosureUndetermined cl, float3 V, Thickness thickness)
float3 sample_cos_hemisphere(const float2 rand)
float dot(VecOp< float, D >, VecOp< float, D >) RET
float sin_from_cos(float c)
float perceptual_roughness
packed_float3 dominant_direction
LTCFormFactorType form_factor_type
static LTCData identity(float3 N, float3 V)
void pack_to(ClosureLight &cl) const
static void pack_identity(ClosureLight &cl, float3 N, float3 V)
CCL_NAMESPACE_BEGIN struct Window V