How to use the RedFormat function from three

Find comprehensive JavaScript three.RedFormat code examples handpicked from public code repositorys.

47
48
49
50
51
52
53
54
55
56
    config.volume.data,
    config.volume.shape[2],
    config.volume.shape[1],
    config.volume.shape[0],
);
texture.format = THREE.RedFormat;
texture.type = typedArrayToThree(config.volume.data.constructor);

texture.generateMipmaps = false;
texture.minFilter = THREE.LinearFilter;
fork icon115
star icon803
watch icon0

97
98
99
100
101
102
103
104
105
106
    config.mask.data,
    config.mask.shape[2],
    config.mask.shape[1],
    config.mask.shape[0],
);
mask.format = THREE.RedFormat;
mask.type = THREE.UnsignedByteType;

mask.generateMipmaps = false;
mask.minFilter = THREE.NearestFilter;
fork icon115
star icon803
watch icon0

+ 3 other calls in file

155
156
157
158
159
160
161
162
163
164
    }
}

// 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];
internal.texture.flipY=false;
fork icon31
star icon75
watch icon16

212
213
214
215
216
217
218
219
220
221
  })
}
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;
  texture.unpackAlignment = 1;
  var shader = VolumeRenderShader1;
fork icon0
star icon0
watch icon4

+ 3 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)