2025-01-03 12:09:23 +00:00
|
|
|
using Godot;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Rokojori
|
|
|
|
|
{
|
|
|
|
|
[Tool]
|
|
|
|
|
[GlobalClass]
|
|
|
|
|
public partial class BoolPropertyName : ShaderPropertyName
|
|
|
|
|
{
|
2025-10-24 11:38:51 +00:00
|
|
|
public override RenderingServer.GlobalShaderParameterType GetParameterType()
|
|
|
|
|
{
|
|
|
|
|
return RenderingServer.GlobalShaderParameterType.Bool;
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-03 12:09:23 +00:00
|
|
|
public void Set( Material material, bool value )
|
|
|
|
|
{
|
|
|
|
|
_Set( material, value );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool Get( Material material )
|
|
|
|
|
{
|
|
|
|
|
return _Get( material, false );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static BoolPropertyName Create( string name )
|
|
|
|
|
{
|
|
|
|
|
var p = new BoolPropertyName();
|
|
|
|
|
p.propertyName = name;
|
|
|
|
|
return p;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|