EEVEE-Next: Add missing translucent weight in deferred
This makes mixed translucent BSDF behave correctly.
This commit is contained in:
parent
95b523f268
commit
fdcc8dc689
|
@ -48,6 +48,7 @@ void main()
|
||||||
float thickness = nodetree_thickness();
|
float thickness = nodetree_thickness();
|
||||||
|
|
||||||
g_diffuse_data.color *= g_diffuse_data.weight;
|
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_reflection_data.color *= g_reflection_data.weight;
|
||||||
g_refraction_data.color *= g_refraction_data.weight;
|
g_refraction_data.color *= g_refraction_data.weight;
|
||||||
g_translucent_data.color *= g_translucent_data.weight;
|
g_translucent_data.color *= g_translucent_data.weight;
|
||||||
|
|
|
@ -51,6 +51,7 @@ void main()
|
||||||
g_thickness = max(0.0, nodetree_thickness());
|
g_thickness = max(0.0, nodetree_thickness());
|
||||||
|
|
||||||
g_diffuse_data.color *= g_diffuse_data.weight;
|
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_reflection_data.color *= g_reflection_data.weight;
|
||||||
g_refraction_data.color *= g_refraction_data.weight;
|
g_refraction_data.color *= g_refraction_data.weight;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue