Skip to content

Format

typescript
Shader.Find(shader_name)

class: Shader

Description

Finds a shader based on the specified path.

A shader is a program used to control vertex, pixel, and other graphics operations in the rendering pipeline. It defines how objects are ultimately rendered on the screen.

Parameters

param_nametypedescription
shader_namestringThe path to the shader.

Return

typedescription
Shader|undefinedThe shader.

Code Example