📜  threemeshphonematerial url 图片三个js - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:14.108000             🧑  作者: Mango

代码示例1
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 );