Real-Time 3D Graphics with WebGL 2
上QQ阅读APP看书,第一时间看更新

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.