Class: SimpleShader

SimpleShader(vertexShaderPath, fragmentShaderPath) → {SimpleShader}

new SimpleShader(vertexShaderPath, fragmentShaderPath) → {SimpleShader}

constructor of SimpleShader object.
Parameters:
Name Type Description
vertexShaderPath string filepath of the Vertex Shader.
fragmentShaderPath string filepath of the Fragment Shader.
Source:
Returns:
An intsnace of SimpleShader.
Type
SimpleShader

Methods

activateShader(pixelColor, aCamera) → {void}

Activate the shader for rendering.
Parameters:
Name Type Description
pixelColor Array.<float> [R, G, B, A] Sets the shader pixel color.
aCamera Camera Camera to draw to
Source:
Returns:
Type
void