Class: LineShader

LineShader(vertexShaderPath, fragmentShaderPath) → {LineShader}

new LineShader(vertexShaderPath, fragmentShaderPath) → {LineShader}

Default Constructor

for debugging physics engine

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

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

setPointSize(w) → {void}

Set the point size of LineRenderable
Parameters:
Name Type Description
w type new point size
Source:
Returns:
Type
void