Browse Source

set negative color values to 0 to avoid underflow when msaa is applied in default pipeline

Trevor Baron 7 years ago
parent
commit
7d255fad13
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Shaders/default.fragment.fx

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

@@ -418,7 +418,7 @@ void main(void) {
 #endif
 
 #define CUSTOM_FRAGMENT_BEFORE_FOG
-
+color.rgb = max(color.rgb, 0.);
 #include<logDepthFragment>
 #include<fogFragment>