Drawing an image using WebGL

后端 未结 2 454
南笙
南笙 2021-01-02 04:04

Please could anyone explain how to draw an image on a WebGL canvas? At the moment, on a regular \'2d\' canvas, I\'m using this:

var canvas = document.getElem         


        
2条回答
  •  孤城傲影
    2021-01-02 04:31

    Here is a self-contained script that does what you want, if that helps. All you need to provide is image.jpg.

    
    
    

提交回复
热议问题