Creates all WebGL buffers for the box 6 ------- 7 / | / | 3 ------- 2 | | | | | | 5 -----|- 4 | / | / 0 ------- 1 looking in negative z axis direction
The canvas' context
The minimal x,y,z of the box
The maximal x,y,z of the box
The buffer containing the box's colors.
Colors used to color the box.
The amount of indices.
The canvas' context
The indices describing which vertices form a triangle.
Maxpoint of the box.
Minpoint of the box.
The buffer containing the box's normals.
Key of the corresponding Shader in the Shadermanager.
The buffer containing the box's vertices.
Used for drawing with the raytracer.
Ignored by the Raytracer
Ray to intersect with.
Transformation of the object into worldspace.
Method to used for drawing with rasterizer.
Shader used for rendering.
Generated using TypeDoc
Represents a Box in threedimensional space.