Displays scenes using WebGL Creates canvas when initialized if one isn't passed
Used to place objects, lights and cameras
Abstract class to create different types of cameras
PerspectiveCamera
- Most common type of projection mode. Works like human eye.
Base class for most objects in three.js. Provides properties and methods for manipulating objects in 3D space.
A vertex shader processes each vertex of a 3D object. It handles tasks like transforming vertex coordinates and calculating vertex lighting.
A fragment shader, on the other hand, processes pixels or fragments that will be displayed on the screen, determining their color, texture, and effects based on the lighting and material properties.