Skip to content

Shader ​

The Shader class represents a compiled renderer shader resource.


Methods ​

constructor(code: string, isVertexShader: boolean)Shader ​

Creates a new Shader instance.

  • codestring - The code.
  • isVertexShaderboolean - The is vertex shader.

Returned:

  • Shader - The result of the call.

GetIndex()number ​

Retrieves the index.

Returned:

  • number - The requested index.