Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new ShaderBase(source: string, shaderType: number): ShaderBase

Properties

Protected _glShader

_glShader: WebGLShader | null

Protected _isCompiled

_isCompiled: boolean

Protected _shaderType

_shaderType: number

Protected _source

_source: string

Accessors

glShader

  • get glShader(): WebGLShader
  • Returns WebGLShader when the shader is already compiled. Otherwise throws an error.

    Returns WebGLShader

isCompiled

  • get isCompiled(): boolean

Methods

_compile

  • _compile(context: WebGL2RenderingContext): null | WebGLShader
  • Parameters

    • context: WebGL2RenderingContext

    Returns null | WebGLShader

Generated using TypeDoc