mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-07-19 08:41:49 -05:00
Add RenderQueue to MaterialImportParam
This commit is contained in:
parent
15d9d957ee
commit
537cfe55be
|
|
@ -144,6 +144,11 @@ namespace VRMShaders
|
|||
material.SetFloat(kv.Key, kv.Value);
|
||||
}
|
||||
|
||||
if (param.RenderQueue.HasValue)
|
||||
{
|
||||
material.renderQueue = param.RenderQueue.Value;
|
||||
}
|
||||
|
||||
foreach(var action in param.Actions)
|
||||
{
|
||||
action(material);
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ namespace VRMShaders
|
|||
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 MaterialImportParam(string name, string shaderName)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user