2
0
Эх сурвалжийг харах

Update Tonemap, add saturate() for linear

ShiroSmith 5 жил өмнө
parent
commit
59a6f60eaf

+ 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.));