Skip to content

Instantly share code, notes, and snippets.

@zhangwc
Created December 4, 2013 06:02
Show Gist options
  • Save zhangwc/7783071 to your computer and use it in GitHub Desktop.
Save zhangwc/7783071 to your computer and use it in GitHub Desktop.
Q:如何显示2d的sprite?一种呈现在场景中(如粒子),一种固定在屏幕上不动(如GUI/HUD)
A:不同点在于是否需要设置useScreenCoordinates为true。
Q:如何按一定规则贴上纹理?
A:常用 texture.wrapS = texture.wrapT = THREE.RepeatWrapping;
texture.repeat.set( 10, 10 );
var material = new THREE.MeshBasicMaterial( { map: texture, side: THREE.DoubleSide } );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment