18 const float do_multiscatter,
31 float3 brdf =
brdf_lut(kg, color.rgb, color.rgb, NV, roughness, do_multiscatter != 0.0f);
33 ClosureReflection reflection_data;
34 reflection_data.color = weight * brdf;
35 reflection_data.N =
N;
36 reflection_data.roughness = roughness;
float3 brdf_lut(KernelGlobals &kg, float3 F0, float3 F90, float cos_theta, float roughness, bool do_multiscatter)
Coordinates coordinate_impl(KernelGlobals &kg, const ShadingData &sd, float3 P, float3 N)
Closure closure_eval(KernelGlobals &kg, ShadingData &sd, ClosureDiffuse diffuse)
float dot(VecOp< float, D >, VecOp< float, D >) RET
void node_bsdf_glossy(float4 color, float roughness, float, float, float3 N, float3, float weight, const float do_multiscatter, KernelGlobals &kg, ShadingData &sd, Closure &result)
VecT safe_normalize(VecT vector)
CCL_NAMESPACE_BEGIN struct Window V