Constructor
new TextureShader(vertexShaderPath, fragmentShaderPath) → {TextureShader}
Parameters:
| Name | Type | Description |
|---|---|---|
vertexShaderPath |
string | path to the vertex shader file |
fragmentShaderPath |
string | path to the fragment shader path |
- Source:
Returns:
a new TextureShader instance
- Type
- TextureShader
Extends
Methods
activate(pixelColor, trsMatrix, cameraMatrix)
Overrides the activation of this shader for rending
Parameters:
| Name | Type | Description |
|---|---|---|
pixelColor |
vec4 | [R,G,B,A] color array for the pixels |
trsMatrix |
mat4 | translation, rotation, and scaling matrix for the object being rendered |
cameraMatrix |
mat4 | translation, rotation, and scaling matrix for the Camera |
- Overrides:
- Source:
cleanUp()
Detaches and removes the shader from webGL
- Inherited From:
- Source: