Files
Hasebe/Library/PackageCache/com.unity.cinemachine@1b8d58983403/Editor/Samples/ExposeHDRPInternals/MaterialUpgradeHelper.cs
T
2026-09-24 20:49:06 +03:00

24 lines
942 B
C#

#if HDRP_1_OR_NEWER
using System.Collections.Generic;
using UnityEngine;
namespace UnityEditor.Rendering.HighDefinition
{
public static class MaterialUpgradeHelper
{
public static List<MaterialUpgrader> GetHDRPMaterialUpgraders()
{
return new List<MaterialUpgrader>
{
new StandardsToHDLitMaterialUpgrader("Standard", "HDRP/Lit"),
new StandardsToHDLitMaterialUpgrader("Standard (Specular setup)", "HDRP/Lit"),
new StandardsToHDLitMaterialUpgrader("Standard (Roughness setup)", "HDRP/Lit"),
new UnlitsToHDUnlitUpgrader("Unlit/Color", "HDRP/Unlit"),
new UnlitsToHDUnlitUpgrader("Unlit/Texture", "HDRP/Unlit"),
new UnlitsToHDUnlitUpgrader("Unlit/Transparent", "HDRP/Unlit"),
new UnlitsToHDUnlitUpgrader("Unlit/Transparent Cutout", "HDRP/Unlit"),
};
}
}
}
#endif