[Add] All in one shader

This commit is contained in:
2026-02-23 22:01:07 +07:00
parent ec0aa86ac2
commit 4f942cd7c0
806 changed files with 401510 additions and 33 deletions
@@ -0,0 +1,32 @@
using UnityEngine.Rendering;
namespace AllIn13DShader
{
public class ConverterURPLit : ConverterStandard
{
protected override void ConvertBlending()
{
if (from.IsKeywordEnabled("_SURFACE_TYPE_TRANSPARENT"))
{
if (from.IsKeywordEnabled("_ALPHAPREMULTIPLY_ON"))
{
SetBlendSrc(UnityEngine.Rendering.BlendMode.One);
SetBlendDst(UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
}
else
{
SetBlendSrc(UnityEngine.Rendering.BlendMode.SrcAlpha);
SetBlendDst(UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
}
SetAlphaPreset();
}
else
{
SetBlendSrc(UnityEngine.Rendering.BlendMode.One);
SetBlendDst(UnityEngine.Rendering.BlendMode.Zero);
SetOpaquePreset();
}
}
}
}