s&box docs

public class Sandbox.Shader : Sandbox.Resource

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

Broader workflow and conceptual references connected to this API.

Methods

Showing 1 methods

public static Sandbox.Shader Load(string filename)

Load a shader by file path.

Parameters

  • filename: The file path to load as a shader.

Returns

The loaded shader, or null

Properties

Showing 2 properties

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

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

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.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.Shader

On this page