A custom shader program.
    public class Shader : Resource

This class allows you to define a custom shader program that can be used for various materials to render objects.

Inheritance Chain

Constructors

    public Shader()

Properties

    public string Code { get; set; }

Methods

    public string GetCode()

Getter for Code

    public Texture GetDefaultTextureParam(string param)

    public Mode GetMode()

Returns the shader mode for the shader, eiter MODE_CANVAS_ITEM, MODE_SPATIAL or MODE_PARTICLES

    public bool HasParam(string name)

    public void SetCode(string code)

Setter for Code

    public void SetDefaultTextureParam(string param, Texture texture)

Inner Types

Mode

Name Value Description
Spatial 0  
CanvasItem 1  
Particles 2  
Tags: