Преглед изворни кода

[monogame] Fixed tint black, see #1003.

badlogic пре 8 година
родитељ
комит
77014b9f46
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      spine-monogame/example/Content/SpineEffect.fx

+ 1 - 1
spine-monogame/example/Content/SpineEffect.fx

@@ -51,7 +51,7 @@ float4 PixelShaderFunction(VertexShaderOutput input) : COLOR0
 	float alpha = texColor.a * input.Color.a;
 	float4 output;
 	output.a = alpha;
-	output.rgb = (1.0 - texColor.rgb) * input.Color2.rgb * alpha + texColor.rgb * input.Color.rgb;
+	output.rgb = ((texColor.a - 1.0) * input.Color2.a + 1.0 - texColor.rgb) * input.Color2.rgb + texColor.rgb * input.Color.rgb;
 
 	return output;
 }