浏览代码

Inherit color in overlay decals

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

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

@@ -70,7 +70,7 @@ class DecalOverlay extends hxsl.Shader {
 				discard;
 
 			var color = colorTexture.get(calculatedUV);
-			pixelColor.rgb = color.rgb + color.rgb * emissive;
+			pixelColor.rgb *= color.rgb + color.rgb * emissive;
 			pixelColor.a = max(max(pixelColor.r, pixelColor.g), pixelColor.b) * fadeFactor;
 		}
 	}