mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-11-19 17:22:37 +08:00
fix: soft masking not working with DetailFilter.Masking
This commit is contained in:
@@ -643,7 +643,7 @@ half4 apply_detail_filter(half4 color, float2 uvLocal)
|
||||
half4 detail = tex2D(_DetailTex, uv);
|
||||
#if DETAIL_MASKING // Detail.Masking
|
||||
{
|
||||
color.a *= inv_lerp(_DetailThreshold.x, _DetailThreshold.y, detail.a);
|
||||
color *= inv_lerp(_DetailThreshold.x, _DetailThreshold.y, detail.a);
|
||||
}
|
||||
#elif DETAIL_MULTIPLY // Detail.Multiply
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user