webgl first acquaintance 2

The previous article introduced webgl.

Here is further simplification.

 

WebGL is all about creating different shaders,

Provide data to the shader and then call gl.drawArrays or gl.drawElements 

Let WebGL call the current vertex shader to process each vertex, and call the current fragment shader to render each pixel.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324911712&siteId=291194637