How to use the UnsignedByteType function from three
Find comprehensive JavaScript three.UnsignedByteType code examples handpicked from public code repositorys.
GitHub: K3D-tools/K3D-jupyter
98 99 100 101 102 103 104 105 106 107
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; mask.magFilter = THREE.NearestFilter;
115
803
0
77 78 79 80 81 82 83 84 85 86
} const texture = new three_1.DataTexture(); texture.image.data = data; texture.image.width = size; texture.image.height = size * size; texture.type = three_1.UnsignedByteType; texture.magFilter = three_1.LinearFilter; texture.minFilter = three_1.LinearFilter; texture.wrapS = three_1.ClampToEdgeWrapping; texture.wrapT = three_1.ClampToEdgeWrapping;
1
3
0
+ 3 other calls in file
820 821 822 823 824 825 826 827 828 829
if (texture.internalFormat !== undefined && _texture.format !== WEBGL_TEXTURE_FORMATS[texture.internalFormat]) { console.warn('threeExamples.LegacyGLTFLoader: Three.js doesn\'t support texture internalFormat which is different from texture format. ' + 'internalFormat will be forced to be the same value as format.'); } _texture.type = texture.type !== undefined ? WEBGL_TEXTURE_DATATYPES[texture.type] : THREE.UnsignedByteType; if (texture.sampler) { var sampler = json.samplers[texture.sampler]; _texture.magFilter = WEBGL_FILTERS[sampler.magFilter] || THREE.LinearFilter;
0
1
0
+ 9 other calls in file
1912 1913 1914 1915 1916 1917 1918 1919 1920
console.warn( 'THREE.GLTFLoader: Three.js does not support texture internalFormat which is different from texture format. ' + 'internalFormat will be forced to be the same value as format.' ); } texture.type = textureDef.type !== undefined ? WEBGL_TEXTURE_DATATYPES[ textureDef.type ] : THREE.UnsignedByteType; var samplers = json.samplers || {}; var sampler = samplers[ textureDef.sampler ] || {};
0
0
0
+ 8 other calls in file
114 115 116 117 118 119 120 121 122 123
minFilter: THREE.LinearFilter, magFilter: THREE.LinearFilter, wrapS: THREE.ClampToEdgeWrapping, wrapT: THREE.ClampToEdgeWrapping, format: THREE.RGBAFormat, type: THREE.UnsignedByteType }); this.canvas.width = this.width; this.canvas.height = this.height;
0
0
0
+ 6 other calls in file
three.Vector3 is the most popular function in three (22341 examples)