Просмотр исходного кода

glossiness is now correctly decoded in linear

ncannasse 7 лет назад
Родитель
Сommit
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() {
 		function fragment() {
 			var v = texture.get(calculatedUV);
 			var v = texture.get(calculatedUV);
 			output.metalness = v.r;
 			output.metalness = v.r;
-			output.roughness = 1 - v.g;
+			output.roughness = 1 - v.g * v.g;
 			output.occlusion = v.b;
 			output.occlusion = v.b;
 		}
 		}
 	}
 	}