Explorar o código

Merge pull request #3083 from sebavan/master

Do not Clamp alpha in Premul and Blend
David Catuhe %!s(int64=7) %!d(string=hai) anos
pai
achega
eac073217d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/Shaders/ShadersInclude/imageProcessingFunctions.fx

+ 2 - 0
src/Shaders/ShadersInclude/imageProcessingFunctions.fx

@@ -83,7 +83,9 @@ vec4 applyImageProcessing(vec4 result) {
 
 	// Going back to gamma space
 	result.rgb = toGammaSpace(result.rgb);
+#if !(defined(ALPHABLEND) && defined(PREMULTIPLYALPHA))
 	result.rgb = clamp(result.rgb, 0.0, 1.0);
+#endif
 
 #ifdef CONTRAST
 	// Contrast