rj-action-library/Runtime/UI/Shaders/NinePatch/UINinePatchMaterial.cs

37 lines
994 B
C#

using Godot;
namespace Rokojori
{
// Generated by ShaderClassGenerator
public class UINinePatchShader
{
public static readonly CachedResource<Shader> shader = new CachedResource<Shader>(
"res://addons/rokojori_action_library/Runtime/UI/Shaders/NinePatch/UINinePatch.gdshader"
);
public static readonly Vector2PropertyName size = Vector2PropertyName.Create( "size" );
public static readonly Vector4PropertyName borders = Vector4PropertyName.Create( "borders" );
}
[Tool]
[GlobalClass]
public partial class UINinePatchMaterial:CustomMaterial
{
public readonly CustomMaterialProperty<Vector2> size;
public readonly CustomMaterialProperty<Vector4> borders;
public UINinePatchMaterial()
{
Shader = UINinePatchShader.shader.Get();
size = new CustomMaterialProperty<Vector2>( this, UINinePatchShader.size );
borders = new CustomMaterialProperty<Vector4>( this, UINinePatchShader.borders );
}
}
}