mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-08 03:48:19 -05:00
Add RenderQueue to MaterialImportParam
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user