Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

threemeshphonematerial url image three js


				var texture = new THREE.TextureLoader().load( 'textures/crate.gif' );


				var geometry = new THREE.BoxBufferGeometry( 200, 200, 200 );
				var material = new THREE.MeshBasicMaterial( { map: texture } );


				mesh = new THREE.Mesh( geometry, material );
				scene.add( mesh );
Source by discourse.threejs.org #
 
PREVIOUS NEXT
Tagged: #threemeshphonematerial #url #image #js
ADD COMMENT
Topic
Name
5+3 =