Canvas 3D drawing using both 2D and 3D context

前端 未结 4 1584
日久生厌
日久生厌 2020-12-13 21:09

Since the webgl/opengl doesn\'t support text drawing, so it possible to draw 3D object using 3D context and text drawing using 2D context ?

4条回答
  •  天涯浪人
    2020-12-13 21:41

    Create the text as a texture using canvas 2D, then render it in 3D. See here for a tutorial.

提交回复
热议问题