Files
Pal3.Unity/Assets/Scripts/Engine/Services/ShaderUtility.cs
2024-01-07 02:37:35 -08:00

17 lines
575 B
C#

// ---------------------------------------------------------------------------------------------
// Copyright (c) 2021-2022, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------------------------------
namespace Engine.Services
{
using UnityEngine;
public static class ShaderUtility
{
public static int GetPropertyIdByName(string propertyName)
{
return Shader.PropertyToID(propertyName);
}
}
}