API Docs for: 2.0.0
Show:

PrimitiveShader Class

Constructor

PrimitiveShader

(
  • gl
)

Parameters:

  • gl WebGLContext

    the current WebGL drawing context

Item Index

Methods

Methods

destroy

()

Destroys the shader.

init

()

Initialises the shader.

Properties

fragmentSrc

Array

The fragment shader.

program

Any

The WebGL program.

vertexSrc

Array

The vertex shader.