Sfoglia il codice sorgente

Do not Clamp alpha in Premul and Blend

Sebastien Vandenberghe 7 anni fa
parent
commit
133bfdffa3
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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
 	// Going back to gamma space
 	result.rgb = toGammaSpace(result.rgb);
 	result.rgb = toGammaSpace(result.rgb);
+#if !(defined(ALPHABLEND) && defined(PREMULTIPLYALPHA))
 	result.rgb = clamp(result.rgb, 0.0, 1.0);
 	result.rgb = clamp(result.rgb, 0.0, 1.0);
+#endif
 
 
 #ifdef CONTRAST
 #ifdef CONTRAST
 	// Contrast
 	// Contrast