[英]Size of sprites along geometry Three.js
Sprite不能使用sizeAttenuation
功能为false。 您需要使用Pointcloud
。 http://codepen.io/seanseansean/pen/EaBZEY
您要搜索的pontCloud资料中的参数是sizeAttenuation= false
。
将使所有粒子尺寸相对于画布尺寸。 不会改变观点。
var geometry = new THREE.Geometry();
geometry.vertices.push( new THREE.Vector3() );
var size = 32; // means 32px
var sectorIcon = new THREE.PointCloud( geometry, new THREE.PointCloudMaterial( { size: size, color: new THREE.Color( 0xffffff ), depthTest: 1, depthWrite: false, opacity: 0.5, sizeAttenuation: false, blending: THREE.AdditiveBlending, transparent: true, map: THREE.ImageUtils.loadTexture("img/sectors/"+value.image_file) } ) );
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.