Browse Source

Shader Typo

Sebastien Vandenberghe 8 years ago
parent
commit
4699e29404
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Shaders/pbr.fragment.fx

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

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