pex-context:用于PEX的现代WebGL状态包装器

时间:2021-04-29 11:34:00
【文件属性】:
文件名称:pex-context:用于PEX的现代WebGL状态包装器
文件大小:3.52MB
文件格式:ZIP
更新时间:2021-04-29 11:34:00
webgl pipeline gpu buffer texture pex上下文 用于现代WebGL状态包装器。 使用pex-context您可以分配GPU资源(纹理,缓冲区),设置状态管道并传递并将它们组合成命令。 例子 const createContext = require ( 'pex-context' ) const createCube = require ( 'primitive-cube' ) const mat4 = require ( 'pex-math/mat4' ) const ctx = createContext ( { width : 640 , height : 480 } ) const cube = createCube ( ) const clearCmd = { pass : ctx . pass ( { clearColor : [ 0 , 0 , 0 , 1 ] , clearDepth

网友评论