2025-03-25 06:58:53 +00:00
|
|
|
using Godot;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Rokojori
|
|
|
|
|
{
|
|
|
|
|
[Tool]
|
|
|
|
|
[GlobalClass]
|
|
|
|
|
public partial class Vector2IPropertyName : ShaderPropertyName
|
|
|
|
|
{
|
2025-10-24 11:38:51 +00:00
|
|
|
public override RenderingServer.GlobalShaderParameterType GetParameterType()
|
|
|
|
|
{
|
|
|
|
|
return RenderingServer.GlobalShaderParameterType.Ivec2;
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-25 06:58:53 +00:00
|
|
|
public void Set( Material material, Vector2I value )
|
|
|
|
|
{
|
|
|
|
|
_Set( material, value );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Vector2I Get( Material material )
|
|
|
|
|
{
|
|
|
|
|
return _Get( material, Vector2I.Zero );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static Vector2IPropertyName Create( string name )
|
|
|
|
|
{
|
|
|
|
|
var p = new Vector2IPropertyName();
|
|
|
|
|
p.propertyName = name;
|
|
|
|
|
return p;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|