Class: TextureShader

TextureShader

new TextureShader(vertexShaderPath, fragmentShaderPath) → {TextureShader}

Default Constructor

Implements a Textured ShaderProgram object.

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

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