Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repeat texture
- /////////////
- // create the ground plane
- var planeGeometry = new THREE.PlaneGeometry(2000, 2000);
- var map = new THREE.ImageUtils.loadTexture( 'assets/img/wood.jpg' );
- map.wrapS = map.wrapT = THREE.RepeatWrapping;
- map.repeat.set( 4, 4);
- var planeMaterial = new THREE.MeshLambertMaterial({color: 0xffffff,map:map , transparent: true }); //side:THREE.BackSide
- var plane = new THREE.Mesh(planeGeometry, planeMaterial);
- plane.receiveShadow = true;
- // rotate and position the plane
- plane.rotation.x = -0.5 * Math.PI;
- plane.position.x = 0;
- plane.position.y = -2;
- plane.position.z = 0;
- scene.add(plane);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement