Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Shader

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

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

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

    Returns Shader

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