- Real-Time 3D Graphics with WebGL 2
- Farhad Ghayour Diego Cantor
- 61字
- 2021-06-10 19:42:54
Varyings
Varyings are used to pass data from the vertex shader to the fragment shader. Depending on what is being rendered – points, lines, or triangles – the values set on a varying by a vertex shader will be interpolated while executing the fragment shader.
Now, let's cover the principles of creating a simple geometric object.