three.js-材质贴图仅在一面并连接组件
发布时间
阅读量:
阅读量


为每个面赋予材质时,需插入一张图片,并确保其处于居中位置,避免重复显示,且仅展示一张图像。
核心代码示例如下:
var geometry = new THREE.CylinderGeometry(10, 10, 10, 6);
var material = [
new THREE.MeshLambertMaterial({ color: meshcolor, opacity: 0.8, transparent: true }),
new THREE.MeshLambertMaterial({ color: meshcolor, opacity: 0.8, transparent: true }),
new THREE.MeshLambertMaterial({ color: meshcolor, opacity: 0.8, transpare
全部评论 (0)
还没有任何评论哟~
