我在使用Three.js渲染精靈時出現問題,使問題更加複雜,我使用遊戲引擎voxel.js來管理實例。Threejs sprite ordering
實施例:http://christopherdebeer.com/sandbox/voxeljs/
我試圖隨深度{寫|測試}搞亂:
material = new game.THREE.SpriteMaterial({
map: spriteB,
useScreenCoordinates: false,
alignment: game.THREE.SpriteAlignment.bottomCenter,
color: 0xffffff,
fog: true,
depthWrite: true,
depthTest: false
});
用於在例如左側的半透明的網格。
我需要的是一個透明的網格或體素,當在這個位置顯示一個2D精靈時,給它一定的空間體積。
我該如何解決這個問題,或者我做錯了什麼?
感謝您的建議,我會嘗試一下 – Christopher 2013-03-26 10:26:13