Shaderclass

A shader is a specialized and complex computer program that use world geometry, materials and textures to render graphics.

objectResourceShader
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public class Sandbox.Shader : Sandbox.Resource

Methods1

Showing 1 methods

public static Sandbox.Shader Load(string filename)PUBLICSTATIC

Load a shader by file path.

ParameterTypeDescription
filenamestringThe file path to load as a shader.
Returns:ShaderThe loaded shader, or null

Properties2

Showing 2 properties

public virtual bool Sandbox.Shader.IsValid { get; set; }PUBLICVIRTUALGETSET

Returns:bool

public Sandbox.Shader.ShaderSchema Sandbox.Shader.Schema { get; set; }PUBLICGETSET

Returns a schema representing the variables and combos in this shader. This is used by the material editor to show UI for editing shader parameters.

Returns:ShaderSchema

On this page