소스 검색

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