buildMesh() { var geometry = new THREE.RingGeometry( 1, 5, 32 ); var material = new THREE.MeshBasicMaterial( { color: 0xff0000, side: THREE.DoubleSide, wireframe: true } ); var mesh = new THREE.Mesh( geometry, material ); return mesh; }
constructor(color) { this.basic = new THREE.MeshBasicMaterial({ color, side: THREE.DoubleSide }); this.standard = new THREE.MeshStandardMaterial({ color, shading: THREE.FlatShading, roughness: 1, metalness: 0, side: THREE.DoubleSide }); this.wire = new THREE.MeshBasicMaterial({wireframe: true}); }
plane() { const geometry = new THREE.PlaneGeometry(); const material = new THREE.MeshBasicMaterial({ color: Math.random() * 0xffffff, side: THREE.DoubleSide }); return new THREE.Mesh(geometry, material); }
transparent: true, opacity: 1, side: THREE.DoubleSide, alphaTest: 0.3 })
flatShading: true, vertexColors: THREE.FaceColors, side: THREE.DoubleSide, };
ring() { const geometry = new THREE.RingGeometry(); const material = new THREE.MeshBasicMaterial({ color: Math.random() * 0xffffff, side: THREE.DoubleSide }); return new THREE.Mesh(geometry, material); }