2025-01-19 20:35:51 +00:00
|
|
|
using Godot;
|
|
|
|
|
|
|
|
namespace Rokojori
|
|
|
|
{
|
2025-02-12 16:48:15 +00:00
|
|
|
// Generated by ShaderClassGenerator
|
|
|
|
|
|
|
|
public class OverlayShader
|
2025-01-19 20:35:51 +00:00
|
|
|
{
|
|
|
|
public static readonly CachedResource<Shader> shader = new CachedResource<Shader>(
|
|
|
|
"res://addons/rokojori_action_library/Runtime/Shading/Shaders/Effects/Overlay/Overlay.gdshader"
|
|
|
|
);
|
|
|
|
|
|
|
|
public static readonly ColorPropertyName albedo = ColorPropertyName.Create( "albedo" );
|
|
|
|
public static readonly FloatPropertyName opacityModulationStrength = FloatPropertyName.Create( "opacityModulationStrength" );
|
|
|
|
public static readonly FloatPropertyName opacityModulationDuration = FloatPropertyName.Create( "opacityModulationDuration" );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2025-02-12 16:48:15 +00:00
|
|
|
[Tool]
|
|
|
|
[GlobalClass]
|
2025-01-19 20:35:51 +00:00
|
|
|
public partial class OverlayMaterial:CustomMaterial
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
public readonly CustomMaterialProperty<Color> albedo;
|
|
|
|
public readonly CustomMaterialProperty<float> opacityModulationStrength;
|
|
|
|
public readonly CustomMaterialProperty<float> opacityModulationDuration;
|
|
|
|
|
|
|
|
public OverlayMaterial()
|
|
|
|
{
|
2025-02-12 16:48:15 +00:00
|
|
|
Shader = OverlayShader.shader.Get();
|
2025-01-19 20:35:51 +00:00
|
|
|
|
2025-02-12 16:48:15 +00:00
|
|
|
albedo = new CustomMaterialProperty<Color>( this, OverlayShader.albedo );
|
|
|
|
opacityModulationStrength = new CustomMaterialProperty<float>( this, OverlayShader.opacityModulationStrength );
|
|
|
|
opacityModulationDuration = new CustomMaterialProperty<float>( this, OverlayShader.opacityModulationDuration );
|
2025-01-19 20:35:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|