using System.Collections; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Text; using Godot; namespace Rokojori { public class ScanGradient { public static readonly CachedResource shader = new CachedResource( "res://addons/rokojori_action_library/Runtime/Shading/Shaders/Effects/ScanGradient/ScanGradient.gdshader" ); public static readonly ColorPropertyName albedo = ColorPropertyName.Create( "albedo" ); public static readonly Texture2DPropertyName textureAlbedo = Texture2DPropertyName.Create( "texture_albedo" ); public static readonly FloatPropertyName grow = FloatPropertyName.Create( "grow" ); public static readonly FloatPropertyName offset = FloatPropertyName.Create( "offset" ); } public partial class ScanGradientMaterial:CustomMaterial { public static readonly CachedResource White = CustomMaterial.Cached( "res://addons/rokojori_action_library/Runtime/Shading/Shaders/Effects/ScanGradient/ScanGradient White.material" ); public readonly CustomMaterialProperty albedo; public readonly CustomMaterialProperty textureAlbedo; public readonly CustomMaterialProperty grow; public readonly CustomMaterialProperty offset; public ScanGradientMaterial() { Shader = ScanGradient.shader.Get(); albedo = new CustomMaterialProperty( this, ScanGradient.albedo ); textureAlbedo = new CustomMaterialProperty( this, ScanGradient.textureAlbedo ); grow = new CustomMaterialProperty( this, ScanGradient.grow ); offset = new CustomMaterialProperty( this, ScanGradient.offset ); } } }