瀏覽代碼

Update Tonemap, add saturate() for linear

ShiroSmith 5 年之前
父節點
當前提交
59a6f60eaf
共有 1 個文件被更改,包括 1 次插入0 次删除
  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.));