Api Sandbox Shader
class

Shader

public class Shader : Resource

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

Properties

Name Type Description
IsValid virtual Boolean
Schema ShaderSchema 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.

Methods

static Shader Load(String filename)

Load a shader by file path.

filename — The file path to load as a shader.
returns — The loaded shader, or null
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.Shader