mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-13 22:09:53 -05:00
28 lines
994 B
C#
28 lines
994 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
|
|
namespace VRMShaders
|
|
{
|
|
public class MaterialDescriptor
|
|
{
|
|
public readonly string Name;
|
|
public readonly string ShaderName;
|
|
public readonly Dictionary<string, TextureDescriptor> TextureSlots = new Dictionary<string, TextureDescriptor>();
|
|
public readonly Dictionary<string, float> FloatValues = new Dictionary<string, float>();
|
|
public readonly Dictionary<string, Color> Colors = new Dictionary<string, Color>();
|
|
public readonly Dictionary<string, Vector4> Vectors = new Dictionary<string, Vector4>();
|
|
public int? RenderQueue;
|
|
public readonly List<Action<Material>> Actions = new List<Action<Material>>();
|
|
|
|
public SubAssetKey SubAssetKey => new SubAssetKey(SubAssetKey.MaterialType, Name);
|
|
|
|
public MaterialDescriptor(string name, string shaderName)
|
|
{
|
|
Name = name;
|
|
ShaderName = shaderName;
|
|
}
|
|
}
|
|
}
|