generate texture from array in threejs

人走茶凉 提交于 2019-12-06 16:22:53

I think your mistake is in the fact that you make a texture of a texture.

When you do:

dummyDataTex = new THREE.DataTexture( dummyRGBA, 4, 4, THREE.RGBAFormat );

the object dummyDataTex that you create here is already of type THREE.Texture.

So your next step:

dummyTex = new THREE.Texture(dummyDataTex);

is not necessary. You should instead immediately use dummyDataTex.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!