Class: GLSLContext
GLSLContext contains all common information for a GLSLShader to use when supplying variables to the GPU, such as uniforms, and attributes.
Table of contents
Constructors
Properties
Constructors
constructor
+ new GLSLContext(gl
: WebGL2RenderingContext, program
: WebGLProgram, camera
: Camera, transform
: Transform): GLSLContext
Parameters:
Name | Type |
---|---|
gl |
WebGL2RenderingContext |
program |
WebGLProgram |
camera |
Camera |
transform |
Transform |
Returns: GLSLContext
Properties
camera
• camera: Camera
The camera component of the camera entity being rendered to.
gl
• gl: WebGL2RenderingContext
WebGL rendering context.
program
• program: WebGLProgram
WebGL program being used that this shader is part of.
transform
• transform: Transform
The transform component of the camera entity being rendered to.