26 constexpr float bias = 0.05f;
27 random_point_cos_hemisphere =
normalize(random_point_cos_hemisphere +
float3(0.0f, 0.0f, bias));
29 float cos_theta = random_point_cos_hemisphere.
z;
31 samp.
direction = random_point_cos_hemisphere;
40 float NV =
max(
dot(n, v), 0.0f);
41 float t =
dot(l, v) -
NL * NV;
47 float single_scatter = bsdf->a + bsdf->b * t;
50 Spectrum multi_scatter = bsdf->multiscatter_term * (1.0f - El);
62float bxdf_oren_nayar_perceived_roughness()
ccl_device Spectrum bsdf_oren_nayar_get_intensity(const ccl_private OrenNayarBsdf *bsdf, const float3 n, const float3 v, const float3 l)
ccl_device_inline float bsdf_oren_nayar_G(const float cosTheta)
ccl_device_inline float cos_theta(const float3 w)
VecBase< float, D > normalize(VecOp< float, D >) RET
float dot(VecOp< float, D >, VecOp< float, D >) RET
ResultT eval(const Uniform &uni, const ViewMatrices view, ScreenThicknessParameters thickness_params, sampler2D hiz_tx, sampler2D screen_radiance_tx, sampler2D screen_normal_tx, float3 vP, float3 vN, float4 noise, float2 pixel_size, float search_distance, float angle_bias, const int slice_count, const int sample_count, const bool reversed, const bool ao_only)
float perceptual_roughness
packed_float3 dominant_direction
static void pack_identity(ClosureLight &cl, float3 N, float3 V)
CCL_NAMESPACE_BEGIN struct Window V