Lighting and shading models: Lambert x Phong.
We have a function to take a model created by three.js and extract the data for its vertices and normals so we can load it directly to the GPU. Furthermore, the polygonal surfaces of the models can be divided into a number of stacks and slices, and the refinement level can be set by the user interactively. It is also possible to edit mainEntrance to select a model and makeCube to set face or vertex normals.
- Since:
- 27/09/2016
- Source:
- See:
-
- Flat shading - Wendell Jack Bouknight (1970)
- Gouraud shading - Henri Gouraud (1971)
- Phong shading - Bui Tuong Phong (1975)
- Computer Graphics Survey
- source
- Lambert diffuse model, Gouraud shading
- Lambert diffuse model, Phong shading
- Phong reflection model, Gouraud shading
- Phong reflection model, Phong shading