Rendering
thejsngin/standard-asseets
build a wrapper over three.js for rendering. Constructs provided:
renderer
Is a three.js webgl renderer, only one renderer component is needed in the level(root gameObjectInstance). Provides events relating to rendering.scene
Is the actual scene in wihich all the to be rendered entities are placed. Only one scene component is needed in the level(root gameObjectInstance). Creates an instance of three.js scene.camera
The camera through which the world is view. Atleast one camera component is required in the level(root gameObjectInstance) for rendering to work.transform
Responsible for controlling the gameObjects position, rotation and scale. Atmax one shloud be used per gameObject. Creates an instance of Three.js group.geometry
Responsible for the shape of the mesh. Creates an instance of Three.js geometry.material
Responsible for the material of the mesh. Creates an instance of Three.js material.mesh
Joins geometry and material to create a Three.js mesh object and adds it to the transform/scene.model
Loads a .glb model and adds it to the transform/scene.light
Creates a light and adds it to the transform/scene. Creates an instance of Three.js light.