How to use the DataTexture3D function from three
Find comprehensive JavaScript three.DataTexture3D code examples handpicked from public code repositorys.
154 155 156 157 158 159 160 161 162 163
offset+=dim[0]; } } // Data Texture internal.texture = new THREE.DataTexture3D( p_data, dim[0],dim[1],dim[2]); internal.texture.format = THREE.RedFormat; internal.texture.minFilter = internal.texture.magFilter = THREE.NearestFilter;//THREE.LinearFilter; internal.texture.unpackAlignment = 1; internal.texture.repeat=[0,0];
31
75
16
210 211 212 213 214 215 216 217 218 219
LEVEL[key])) } }) } makeMesh(volume, cm, climMin, climMax, alphaTest, level) { var texture = new THREE.DataTexture3D( volume.data, volume.xLength, volume.yLength, volume.zLength) texture.format = THREE.RedFormat texture.type = THREE.FloatType texture.minFilter = texture.magFilter = THREE.LinearFilter;
0
0
4
+ 3 other calls in file
three.Vector3 is the most popular function in three (22341 examples)