Summary.
so we can load it directly to the GPU. Edit mainEntrance to select a model and makeCube to set face or vertex normals.
Lighting and shading models: Lambert x Phong.
Here, we add a function to take a model created by three.js and extract the data for vertices and normals,so we can load it directly to the GPU. 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