【文件属性】:
文件名称:kami-texture:kami 渲染器的 WebGL 纹理
文件大小:13KB
文件格式:ZIP
更新时间:2021-07-12 20:02:02
JavaScript
神纹
用于2D 纹理实用程序,但可以与其他 WebGL 引擎(ThreeJS、StackGL 等)单独使用。 通常使用渲染。
//get a webGL context somehow
var gl = require ( 'webgl-context' ) ;
//load an image onto the GPU...
var tex = require ( 'kami-texture' ) ( gl , {
src : 'img/blah.png'
} ) ;
//setup filters if you want
tex . setFilter ( gl . LINEAR ) ;
//render it with kami-batch or another lib...
用法
有关完整详细信息,请参阅。 这是该模块一目了然。
Texture(gl, options)
【文件预览】:
kami-texture-master
----test.js(3KB)
----.npmignore(52B)
----test()
--------green.png(140B)
--------pixel-diffuse.png(2KB)
----LICENSE.md(1KB)
----README.md(3KB)
----.gitignore(39B)
----index.js(19KB)
----package.json(1KB)