Differential D10575 Diff 35726 source/blender/gpu/shaders/material/gpu_shader_material_principled.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/shaders/material/gpu_shader_material_principled.glsl
| Context not available. | |||||
| } | } | ||||
| closure_load_ssr_data( | closure_load_ssr_data( | ||||
| glossy_radiance_final, in_Glossy_1.roughness, in_Glossy_1.N, ssr_id, result); | glossy_radiance_final * alpha, in_Glossy_1.roughness, in_Glossy_1.N, ssr_id, result, (mix(base_color.rgb, subsurface_color.rgb, subsurface) * alpha) * (1 - metallic), out_Diffuse_0.AO); | ||||
| } | } | ||||
| if (diffuse_weight > 1e-5) { | if (diffuse_weight > 1e-5) { | ||||
| Context not available. | |||||
| result.transmittance = vec3(1.0 - alpha); | result.transmittance = vec3(1.0 - alpha); | ||||
| result.radiance *= alpha; | result.radiance *= alpha; | ||||
| result.ssr_data.rgb *= alpha; | |||||
| # ifdef USE_SSS | # ifdef USE_SSS | ||||
| result.sss_albedo *= alpha; | result.sss_albedo *= alpha; | ||||
| # endif | # endif | ||||
| Context not available. | |||||