rj-action-library/Runtime/Shading/Properties/Vector3PropertyName.cs

28 lines
555 B
C#
Raw Normal View History

2024-09-14 06:41:52 +00:00
using Godot;
using System.Reflection;
using System.Collections.Generic;
namespace Rokojori
{
[Tool]
[GlobalClass]
2025-01-03 12:09:23 +00:00
public partial class Vector3PropertyName : ShaderPropertyName
2024-09-14 06:41:52 +00:00
{
public void Set( Material material, Vector3 value )
{
2025-01-03 12:09:23 +00:00
_Set( material, value );
2024-09-14 06:41:52 +00:00
}
public Vector3 Get( Material material )
{
2025-01-03 12:09:23 +00:00
return _Get( material, Vector3.Zero );
}
2024-09-14 06:41:52 +00:00
2025-01-03 12:09:23 +00:00
public static Vector3PropertyName Create( string name )
{
var p = new Vector3PropertyName();
p.propertyName = name;
return p;
2024-09-14 06:41:52 +00:00
}
}
}