【发布时间】:2019-04-24 18:24:36
【问题描述】:
我想知道如何更新网格 UV。
UV 似乎在初始化时应用得很好。 但如果这是动态修改的,UV 不会反映它。 这是 PIXI JS 中的错误吗?还是我的错?
...
uvs: Float32Array = new Float32Array([ 0, 0, 1, 0, 1, 1, 0, 1 ]);
mesh: PIXI.mesh.Mesh = new PIXI.mesh.Mesh(texture, vertices, uvs, indices);
在运行时
this.mesh.uvs[2] += this.offset;
this.mesh.uvs[4] += this.offset;
不工作。
【问题讨论】:
标签: typescript opengl-es mesh pixi.js