EEVEE-Next: Add missing translucent weight in deferred

This makes mixed translucent BSDF behave correctly.
This commit is contained in:
Clément Foucault 2024-01-25 18:47:22 +08:00
parent 95b523f268
commit fdcc8dc689
2 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,7 @@ void main()
float thickness = nodetree_thickness();
g_diffuse_data.color *= g_diffuse_data.weight;
g_translucent_data.color *= g_translucent_data.weight;
g_reflection_data.color *= g_reflection_data.weight;
g_refraction_data.color *= g_refraction_data.weight;
g_translucent_data.color *= g_translucent_data.weight;

View File

@ -51,6 +51,7 @@ void main()
g_thickness = max(0.0, nodetree_thickness());
g_diffuse_data.color *= g_diffuse_data.weight;
g_translucent_data.color *= g_translucent_data.weight;
g_reflection_data.color *= g_reflection_data.weight;
g_refraction_data.color *= g_refraction_data.weight;