THREE.SpriteAlignment showing up as undefined

后端 未结 1 1101
被撕碎了的回忆
被撕碎了的回忆 2020-12-11 01:33

After updating from three.js r62Dev to r64 or r64Dev I am receiving the following error.

 var radarMaterial = new THREE.SpriteMaterial( { map: radarTexture2,         


        
相关标签:
1条回答
  • 2020-12-11 02:07

    SpriteMaterial.alignment and SpriteMaterial.useScreenCoordinates have been removed from Threejs. See the release history: https://github.com/mrdoob/three.js/releases.

    Sprites are now rendered in the scene just like any other object.

    If you want to create a heads-up display (HUD), the work-around is to overlay a second scene of sprites, rendered with an orthographic camera.

    See http://threejs.org/examples/webgl_sprites.html for an example of how to do that.

    three.js r.64

    0 讨论(0)
提交回复
热议问题