浏览代码

glossiness is now correctly decoded in linear

ncannasse 7 年之前
父节点
当前提交
c2e845e672
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/shader/pbr/PropsTexture.hx

+ 1 - 1
h3d/shader/pbr/PropsTexture.hx

@@ -12,7 +12,7 @@ class PropsTexture extends hxsl.Shader {
 		function fragment() {
 			var v = texture.get(calculatedUV);
 			output.metalness = v.r;
-			output.roughness = 1 - v.g;
+			output.roughness = 1 - v.g * v.g;
 			output.occlusion = v.b;
 		}
 	}