Home
last modified time | relevance | path

Searched refs:diffuse_weight (Results 1 – 6 of 6) sorted by relevance

/dports/graphics/appleseed/appleseed-2.1.0-beta/src/appleseed/renderer/modeling/bsdf/
H A Dashikhminbrdf.cpp121 float diffuse_weight = ScatteringMode::has_diffuse(modes) ? rval.m_pd : 0.0f; in sample() local
123 const float total_weight = diffuse_weight + glossy_weight; in sample()
127 diffuse_weight *= rcp_total_weight; in sample()
143 if (s[2] < diffuse_weight) in sample()
214 if (ScatteringMode::has_diffuse(modes) && diffuse_weight > 0.0f) in sample()
278 float diffuse_weight = ScatteringMode::has_diffuse(modes) ? rval.m_pd : 0.0f; in evaluate() local
280 const float total_weight = diffuse_weight + glossy_weight; in evaluate()
284 diffuse_weight *= rcp_total_weight; in evaluate()
365 float diffuse_weight = ScatteringMode::has_diffuse(modes) ? rval.m_pd : 0.0f; in evaluate_pdf() local
367 const float total_weight = diffuse_weight + glossy_weight; in evaluate_pdf()
[all …]
H A Dplasticbrdf.cpp360 const float diffuse_weight = (1.0f - F) * values.m_precomputed.m_diffuse_weight; in choose_specular_probability() local
361 const float total_weight = specular_weight + diffuse_weight; in choose_specular_probability()
/dports/graphics/blender/blender-2.91.0/intern/cycles/kernel/closure/
H A Dbssrdf.h349 float3 diffuse_weight = make_float3(0.0f, 0.0f, 0.0f); in bssrdf_setup() local
353 diffuse_weight.x = bssrdf->weight.x; in bssrdf_setup()
359 diffuse_weight.y = bssrdf->weight.y; in bssrdf_setup()
365 diffuse_weight.z = bssrdf->weight.z; in bssrdf_setup()
379 sd, sizeof(PrincipledDiffuseBsdf), diffuse_weight); in bssrdf_setup()
391 DiffuseBsdf *bsdf = (DiffuseBsdf *)bsdf_alloc(sd, sizeof(DiffuseBsdf), diffuse_weight); in bssrdf_setup()
/dports/graphics/blender/blender-2.91.0/intern/cycles/kernel/shaders/
H A Dnode_principled_bsdf.osl45 float diffuse_weight = (1.0 - clamp(Metallic, 0.0, 1.0)) * (1.0 - clamp(Transmission, 0.0, 1.0));
59 if (diffuse_weight > 1e-5) {
89 BSDF = BSDF * diffuse_weight;
/dports/graphics/blender/blender-2.91.0/intern/cycles/kernel/svm/
H A Dsvm_closure.h155 float diffuse_weight = (1.0f - saturate(metallic)) * (1.0f - saturate(transmission)); in svm_node_closure_bsdf() local
190 float3 subsurf_weight = weight * mixed_ss_base_color * diffuse_weight; in svm_node_closure_bsdf()
206 if (subsurface <= CLOSURE_WEIGHT_CUTOFF && diffuse_weight > CLOSURE_WEIGHT_CUTOFF) { in svm_node_closure_bsdf()
207 float3 diff_weight = weight * base_color * diffuse_weight; in svm_node_closure_bsdf()
240 if (diffuse_weight > CLOSURE_WEIGHT_CUTOFF) { in svm_node_closure_bsdf()
241 float3 diff_weight = weight * base_color * diffuse_weight; in svm_node_closure_bsdf()
257 if (diffuse_weight > CLOSURE_WEIGHT_CUTOFF && sheen > CLOSURE_WEIGHT_CUTOFF) { in svm_node_closure_bsdf()
267 float3 sheen_weight = weight * sheen * sheen_color * diffuse_weight; in svm_node_closure_bsdf()
/dports/graphics/appleseed/appleseed-2.1.0-beta/src/appleseed.shaders/
H A Das_osl_extensions.h.in153 float diffuse_weight,