Skip to content

Shader

extends AssetObject

The Shader class is primarily used to check if a shader can run on the user's hardware, set global shader properties and keywords, and find shaders by name using the Find method.

typescript
let shader = Shader.Find("shader_path");

Instance Method

Shader.ructor ( handle : IntPtr ) : ructor(IntPtr

Static Methods

Shader.Find ( shader_name : string ) : Shader|undefined
Finds a shader based on the specified path.