How WebGL works?

前端 未结 2 1015
终归单人心
终归单人心 2020-12-04 14:55

I\'m looking for deep understanding of how WebGL works. I\'m wanting to gain knowledge at a level that most people care less about, because the knowledge isn\'t necessary us

2条回答
  •  抹茶落季
    2020-12-04 15:11

    I would read these articles

    http://webglfundamentals.org/webgl/lessons/webgl-how-it-works.html

    Assuming those articles are helpful, the rest of the picture is that WebGL runs in a browser. It renderers to a canvas tag. You can think of a canvas tag like an img tag except you use the WebGL API to generate an image instead of download one.

    Like other HTML5 tags the canvas tag can be styled with CSS, be under or over other parts of the page. Is composited (blended) with other parts of the page. Be transformed, rotated, scaled by CSS along with other parts of the page. That's a big difference from OpenGL or OpenGL ES.

提交回复
热议问题