- Real-Time 3D Graphics with WebGL 2
- Farhad Ghayour Diego Cantor
- 76字
- 2021-06-10 19:42:54
Vertices
Vertices are the points that define the corners of 3D objects. Each vertex is represented by three floating-point numbers that correspond to the x, y, and z coordinates of the vertex. Unlike its cousin, OpenGL, WebGL does not provide API methods to pass independent vertices to the rendering pipeline; therefore, all of our vertices need to be written in a JavaScript array, which can then be used to construct a WebGL vertex buffer.