8#include "gpu_shader_codegen_lib.glsl"
19 case CLOSURE_BSDF_MICROFACET_GGX_REFLECTION_ID:
25 to_closure_refraction(cl).ior);
42 case CLOSURE_BSDF_MICROFACET_GGX_REFLECTION_ID: {
43 ClosureReflection cl_ = to_closure_reflection(cl);
44 float roughness_sq =
square(cl_.roughness);
48 ClosureRefraction cl_ = to_closure_refraction(cl);
49 float roughness_sq =
square(cl_.roughness);
53 ClosureThinRefraction cl_ = to_closure_thin_refraction(cl);
54 float roughness_sq =
square(cl_.roughness);
77 case CLOSURE_BSDF_MICROFACET_GGX_REFLECTION_ID:
89 case CLOSURE_BSDF_MICROFACET_GGX_REFLECTION_ID:
102 ClosureUndetermined cl,
105 const bool is_transmission)
108 if (is_transmission) {
122 util_tx, to_closure_thin_refraction(cl),
V);
126 case CLOSURE_BSDF_MICROFACET_GGX_REFLECTION_ID:
136 case CLOSURE_BSDF_MICROFACET_GGX_REFLECTION_ID:
156 ClosureUndetermined cl,
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)
ClosureLight bxdf_translucent_light(ClosureUndetermined cl, float3 V, Thickness thickness)
float bxdf_ggx_perceived_roughness_reflection(float roughness)
LightProbeRay bxdf_ggx_lightprobe_reflection(ClosureReflection cl, float3 V)
LightProbeRay bxdf_ggx_lightprobe_thin_glass_transmission(ClosureThinRefraction cl, float3 V)
LightProbeRay bxdf_ggx_lightprobe_transmission(ClosureRefraction cl, float3 V, Thickness thickness)
ClosureLight bxdf_ggx_light_reflection(const UtilityTexture &util_tx, ClosureReflection cl, float3 V)
void bxdf_ggx_context_amend_transmission(ClosureUndetermined &cl, float3 &V, Thickness thickness)
BsdfEval bxdf_ggx_eval_refraction(float3 N, float3 L, float3 V, float alpha, float ior, Thickness thickness, const bool do_clamp)
BsdfEval bxdf_ggx_eval_reflection(float3 N, float3 L, float3 V, float alpha, bool do_clamp)
ClosureLight bxdf_ggx_light_thin_glass_transmission(const UtilityTexture &util_tx, ClosureThinRefraction cl, float3 V)
ClosureLight bxdf_ggx_light_transmission(const UtilityTexture &util_tx, ClosureRefraction cl, float3 V, Thickness thickness)
float bxdf_ggx_perceived_roughness_transmission(float roughness, float ior)
ClosureLight closure_light_new(const UtilityTexture &util_tx, ClosureUndetermined cl, float3 V, Thickness thickness)
ClosureLight closure_light_new_ex(const UtilityTexture &util_tx, ClosureUndetermined cl, float3 V, Thickness thickness, const bool is_transmission)
float closure_apparent_roughness_get(ClosureUndetermined cl)
LightProbeRay bxdf_lightprobe_ray(ClosureUndetermined cl, float3, float3 V, Thickness thickness)
float closure_evaluate_pdf(ClosureUndetermined cl, float3 L, float3 V, Thickness thickness)
#define assert(assertion)
VecBase< T, D > reflect(VecOp< T, D >, VecOp< T, D >) RET
@ CLOSURE_BSDF_MICROFACET_GGX_REFRACTION_ID
@ CLOSURE_BSDF_DIFFUSE_ID
@ CLOSURE_BSSRDF_BURLEY_ID
@ CLOSURE_BSDF_THIN_GLASS_TRANSMISSION_ID
@ CLOSURE_BSDF_TRANSLUCENT_ID
packed_float3 light_shadowed
packed_float3 light_unshadowed
CCL_NAMESPACE_BEGIN struct Window V