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

29 lines
569 B
C#

using Godot;
using System.Reflection;
using System.Collections.Generic;
namespace Rokojori
{
[Tool]
[GlobalClass]
public partial class Sampler2DPropertyName : ShaderPropertyName
{
public void Set( Material material, Texture2D value )
{
_Set( material, value );
}
public Texture2D Get( Material material )
{
return _Get<Texture2D>( material, null );
}
public static Sampler2DPropertyName Create( string name )
{
var p = new Sampler2DPropertyName();
p.propertyName = name;
return p;
}
}
}