cloak effect: shadow retains some opacity

This commit is contained in:
Turánszki János
2024-11-02 10:15:33 +01:00
parent 3bd56c7426
commit cdb193cee6
@@ -47,6 +47,8 @@ float4 main(PixelInput input) : SV_TARGET
}
opacity *= 1 - transmission;
}
opacity = lerp(opacity, 0.5, material.GetCloak());
color.rgb *= 1 - opacity; // if fully opaque, then black (not let through any light)