=================================
=================================
=================================
출처: https://threejs.org/docs/#api/objects/Sprite
Sprite
Sprites do not cast shadows, setting
castShadow = true
will have no effect.Example
var spriteMap = new THREE.TextureLoader().load( "sprite.png" ); var spriteMaterial = new THREE.SpriteMaterial( { map: spriteMap, color: 0xffffff } ); var sprite = new THREE.Sprite( spriteMaterial ); scene.add( sprite );
Constructor
Sprite( material )
Creates a new Sprite.
Properties
#.isSprite
You should not change this, as it used internally for optimisation.
#.material
Methods
#.clone ()
#.raycast ( raycaster, intersects )
Source
=================================
=================================
=================================
기타 링크모음
https://threejs.org/examples/webgl_sprites.html
https://github.com/timoxley/threejs/tree/master/examples/textures/sprites
텍스쳐
http://www.johannes-raida.de/tutorials/three.js/tutorial06/tutorial06.htm
http://jsfiddle.net/greggman/MZpx8/
https://stackoverflow.com/questions/33803280/three-js-how-do-i-scaling-and-offset-my-image-textures
https://stackoverflow.com/questions/7919516/using-textures-in-three-js
https://www.packtpub.com/books/content/threejs-materials-and-texture
스프라이트
http://stemkoski.github.io/Three.js/Texture-Animation.html
https://videlais.com/2017/01/13/learning-three-js-part-3-loading-and-using-textures/
=================================
=================================
=================================
'WEB > WebGL' 카테고리의 다른 글
[WebGL] Three.js - Texture 로드, HREE.TextureLoader(), THREE.ImageUtils.loadTexture 관련 (0) | 2017.11.06 |
---|---|
[WebGL] Three.js - 튜토리얼 예제 모음 관련 (0) | 2017.11.02 |
[WebGL] Three.js - Web Cam Texture (0) | 2017.11.01 |
[WebGL] Three.js - COLLADA(dae) Loader (0) | 2017.11.01 |
[WebGL] Three.js - Path Tracing (0) | 2017.11.01 |