Browse Source

Remove double gamma correct on decals

ShiroSmith 6 năm trước cách đây
mục cha
commit
d25ff594be
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      h3d/shader/pbr/VolumeDecal.hx

+ 0 - 1
h3d/shader/pbr/VolumeDecal.hx

@@ -203,7 +203,6 @@ class DecalPBR extends hxsl.Shader {
 				var albedo = albedoTexture.get(calculatedUV);
 				var albedo = albedoTexture.get(calculatedUV);
 				strength.r = albedoStrength * albedo.a;
 				strength.r = albedoStrength * albedo.a;
 				alpha = albedo.a;
 				alpha = albedo.a;
-				albedo *= albedo; // gamma correct
 				pixelColor = albedo;
 				pixelColor = albedo;
 			}
 			}