rj-action-library/Runtime/Shading/Tools/CSShaderClassGenerator/CSShaderClassTemplate.txt

30 lines
521 B
Plaintext

using Godot;
namespace Rokojori
{
public class ${ShaderName}
{
public static readonly CachedResource<Shader> shader = new CachedResource<Shader>(
"${ShaderResourcePath}"
);
${ShaderStaticPropertyNames}
}
public partial class ${ShaderName}Material:CustomMaterial
{
${MaterialPresets}
${ShaderInstancePropertiesDeclarations}
public ${ShaderName}Material()
{
Shader = ${ShaderName}.shader.Get();
${ShaderInstancePropertiesInitializers}
}
}
}