2025-01-03 12:09:23 +00:00
|
|
|
using Godot;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Rokojori
|
|
|
|
|
{
|
|
|
|
|
[Tool]
|
|
|
|
|
[GlobalClass]
|
|
|
|
|
public partial class TextureChannelPropertyName : ShaderPropertyName
|
2025-10-24 11:38:51 +00:00
|
|
|
{
|
2025-01-03 12:09:23 +00:00
|
|
|
public void Set( Material material, BaseMaterial3D.TextureChannel value )
|
|
|
|
|
{
|
|
|
|
|
_Set( material, value );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public BaseMaterial3D.TextureChannel Get( Material material )
|
|
|
|
|
{
|
|
|
|
|
return (BaseMaterial3D.TextureChannel)_Get( material, 0 );
|
|
|
|
|
}
|
2025-10-24 11:38:51 +00:00
|
|
|
|
|
|
|
|
public override RenderingServer.GlobalShaderParameterType GetParameterType()
|
|
|
|
|
{
|
|
|
|
|
return RenderingServer.GlobalShaderParameterType.Int;
|
|
|
|
|
}
|
2025-01-03 12:09:23 +00:00
|
|
|
}
|
|
|
|
|
}
|