Sebastien Vandenberghe 8 سال پیش
والد
کامیت
4699e29404
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/Shaders/pbr.fragment.fx

+ 1 - 1
src/Shaders/pbr.fragment.fx

@@ -773,7 +773,7 @@ void main(void) {
 
 #ifdef PREMULTIPLYALPHA
 	// Convert to associative (premultiplied) format if needed.
-	finalColor.rgb *= result.a;
+	finalColor.rgb *= finalColor.a;
 #endif
 
 	gl_FragColor = finalColor;