new VolumeMesh()
体积网格。
Example
let volumeMesh = new THING.VolumeMesh({
data: {
position: [x, y, z, x1, y1, y2, .... ],
index: [1 ,2, 3, ...]
},
alphaThreshold: 0.1,
opacity: 0.5,
unitDistanceOpacity: 0.1,
mixType: 'mix',
colorRampTexture: new THING.ImageTexture({ url: 'http://xxx.png' }),
ValueAffectsOpacity: true,
volumeSize: [x, y, z],
volumeOffset: [x, y, z],
volumeRotation: [x, y, z],
particleRadius: 0.7,
particleDensity: 1.6,
isParticleBased: true
});