- Timestamp:
- 04/18/20 20:18:36 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
js/human_3d_alignment/src/visualization/transformations.js
r881 r911 45 45 cylinderShape: { 46 46 radius: 0.1, 47 radiusSegments: 10, 48 isTransparent: false, 49 opacity: 1 47 radiusSegments: 10 50 48 }, 51 49 linkShape: { 52 50 radius: 0.04, 53 radiusSegments: 10, 54 isTransparent: true, 55 opacity: 0.2 51 radiusSegments: 10 56 52 } 57 53 } … … 186 182 * @returns {MeshPhongMaterial} new material for Mesh 187 183 */ 188 getNewMaterial(r, g, b) { 189 let color = new THREE.Color( 190 this.calcColorComponent(r), 191 this.calcColorComponent(g), 192 this.calcColorComponent(b)); 193 return new THREE.MeshPhongMaterial({ color: color }); 184 getNewMaterial(color) { 185 return new THREE.MeshPhongMaterial({ 186 color: color, 187 transparent: true, 188 opacity: 0.6, 189 reflectivity: 0.2, 190 shininess: 600 191 }); 194 192 } 195 193
Note: See TracChangeset
for help on using the changeset viewer.