优化回声描边逻辑

This commit is contained in:
2026-06-28 21:44:33 +08:00
parent 02ac67d338
commit 5c7ffac1bd
12 changed files with 1257 additions and 1328 deletions

View File

@@ -97,6 +97,14 @@ Shader "IndianOcean/DarknessOverlay"
// 从黑暗底色插值到白色
float3 maskColor = lerp(_DarknessColor.rgb, float3(1.0, 1.0, 1.0), lightAmount);
// 编辑器开关开启时MinBrightness >= 0.99),输出纯白色
// 这样乘法混合不会改变原场景颜色
if (_MinBrightness >= 0.99)
{
return half4(1.0, 1.0, 1.0, 1.0);
}
return half4(maskColor, 1.0);
}
ENDHLSL