planarreflection emissive object fix

This commit is contained in:
turanszkij
2019-04-06 15:06:55 +01:00
parent 240815312d
commit 384286383f
+2 -2
View File
@@ -924,6 +924,8 @@ GBUFFEROutputType_Thin main(PIXELINPUT input)
#endif // DEFERRED
#endif // SIMPLE_INPUT
#ifdef TEXTUREONLY
color.rgb += surface.emissiveColor.rgb * surface.emissiveColor.a;
@@ -934,8 +936,6 @@ GBUFFEROutputType_Thin main(PIXELINPUT input)
color = float4(0, 0, 0, 1);
#endif
#endif // SIMPLE_INPUT
color = max(0, color);