- Real-Time 3D Graphics with WebGL 2
- Farhad Ghayour Diego Cantor
- 93字
- 2021-06-10 19:43:03
Goraud Interpolation
The Goraud interpolation method calculates the final color in the vertex shader. The vertex normals are used to perform this calculation. Then, using a varying variable, the final color for the vertex is passed to the fragment shader. Due to the automatic interpolation of varyings provided by the rendering pipeline, each fragment will have a color that is the result of interpolating the colors of the enclosing triangle for each fragment.
Varying Interpolation
The interpolation of varyings is automatic in the rendering pipeline. No programming is required.
The interpolation of varyings is automatic in the rendering pipeline. No programming is required.