This commit is contained in:
左右看
2023-06-28 00:35:46 +08:00
parent cb5bab5ce9
commit 0d848e4d07
524 changed files with 78452 additions and 12 deletions
@@ -0,0 +1,25 @@
using UnityEngine;
namespace UnityGLTF
{
public interface IUnityGltfShaderUpgradeMeta
{
Shader SourceShader { get; }
bool IsUnlit { get; }
bool IsTransparent { get; }
bool IsDoublesided { get; }
}
public class UnityGltfShaderUpgradeMeta : ScriptableObject
{
public Shader sourceShader;
public bool isTransparent = false;
public bool isDoublesided = false;
internal string GenerateNameString()
{
var isUnlit = sourceShader && sourceShader.name.Contains("Unlit");
return (isTransparent ? "_tr" : "") + (isDoublesided ? "_ds" : "") + (isUnlit ? "_unlit" : "");
}
}
}