Bladeren bron

Merge pull request #1128 from Azaezel/cloudlayer

cloudlayer hdr packing
Luis Anton Rebollo 10 jaren geleden
bovenliggende
commit
2d3f711443

+ 2 - 2
Templates/Empty/game/shaders/common/gl/cloudLayerP.glsl

@@ -21,7 +21,7 @@
 //-----------------------------------------------------------------------------
 
 #include "hlslCompat.glsl"
-
+#include "torque.glsl"
 //-----------------------------------------------------------------------------
 // Structures                                                                  
 //-----------------------------------------------------------------------------
@@ -143,5 +143,5 @@ void main()
 
    cResultColor.a = mix( cResultColor.a, 0.0, 1.0 - pow(IN_worldDist,2.0) );
 
-   OUT_col = cResultColor;
+   OUT_col = hdrEncode(cResultColor);
 }   

+ 2 - 2
Templates/Full/game/shaders/common/gl/cloudLayerP.glsl

@@ -21,7 +21,7 @@
 //-----------------------------------------------------------------------------
 
 #include "hlslCompat.glsl"
-
+#include "torque.glsl"
 //-----------------------------------------------------------------------------
 // Structures                                                                  
 //-----------------------------------------------------------------------------
@@ -143,5 +143,5 @@ void main()
 
    cResultColor.a = mix( cResultColor.a, 0.0, 1.0 - pow(IN_worldDist,2.0) );
 
-   OUT_col = cResultColor;
+   OUT_col = hdrEncode(cResultColor);
 }