Browse Source

add sprite sheet author

sunag 8 năm trước cách đây
mục cha
commit
d564ca693b
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      examples/webgl_sprites_nodes.html

+ 2 - 1
examples/webgl_sprites_nodes.html

@@ -137,7 +137,8 @@
 			// use scale to adjuste the real sprite size
 			plane = new THREE.PlaneBufferGeometry( 1, 1 );
 
-			var walkingManTexture = new THREE.TextureLoader().load( "textures/WalkingManSpriteSheet.png" );
+			// https://openclipart.org/detail/239883/walking-man-sprite-sheet
+			var walkingManTexture = new THREE.TextureLoader().load( "./textures/WalkingManSpriteSheet.png" );
 			walkingManTexture.wrapS = walkingManTexture.wrapT = THREE.RepeatWrapping;
 
 			// horizontal sprite-sheet animator