Forráskód Böngészése

FIx missing gamma correct for decal

ShiroSmith 6 éve
szülő
commit
c3322b3fd4
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      h3d/shader/pbr/VolumeDecal.hx

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

@@ -201,9 +201,10 @@ class DecalPBR extends hxsl.Shader {
 
 			if( USE_ALBEDO ) {
 				var albedo = albedoTexture.get(calculatedUV);
-				pixelColor = albedo;
 				strength.r = albedoStrength * albedo.a;
 				alpha = albedo.a;
+				albedo *= albedo; // gamma correct
+				pixelColor = albedo;
 			}
 
 			if( USE_NORMAL ) {