Bläddra i källkod

Update Tonemap, add saturate() for linear

ShiroSmith 5 år sedan
förälder
incheckning
59a6f60eaf
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      h3d/shader/pbr/ToneMapping.hx

+ 1 - 0
h3d/shader/pbr/ToneMapping.hx

@@ -22,6 +22,7 @@ class ToneMapping extends ScreenShader {
 			switch( mode ) {
 			case 0:
 				// linear
+				color.rgb = color.rgb.saturate();
 			case 1:
 				// reinhard
 				color.rgb = color.rgb / (color.rgb + vec3(1.));