Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GLShader

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new GLShader(gl: WebGLRenderingContext, vertexSrc: string | string[], fragmentSrc: string | string[], precision?: string, attributeLocations?: object): GLShader
  • Parameters

    • gl: WebGLRenderingContext
    • vertexSrc: string | string[]
    • fragmentSrc: string | string[]
    • Optional precision: string
    • Optional attributeLocations: object
      • [key: string]: number

    Returns GLShader

Properties

attributes

attributes: any

gl

gl: WebGLRenderingContext

Optional program

program: WebGLProgram | null

uniformData

uniformData: any

uniforms

uniforms: any

Methods

bind

  • bind(): void
  • Returns void

destroy

  • destroy(): void
  • Returns void

Generated using TypeDoc