How to use the RGB_S3TC_DXT1_Format function from three

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

111
112
113
114
115
116
117
118
119
120
const fourCC = header[off_pfFourCC];
let isRGBAUncompressed = false;
switch (fourCC) {
    case FOURCC_DXT1:
        blockBytes = 8;
        dds.format = three_1.RGB_S3TC_DXT1_Format;
        break;
    case FOURCC_DXT3:
        blockBytes = 16;
        dds.format = three_1.RGBA_S3TC_DXT3_Format;
fork icon1
star icon3
watch icon0

+ 8 other calls in file

153
154
155
156
157
158
159
160
161
162
switch ( fourCC ) {

  case FOURCC_DXT1:

    blockBytes = 8;
    dds.format = THREE.RGB_S3TC_DXT1_Format;
    break;

  case FOURCC_DXT3:
    
fork icon0
star icon3
watch icon0

+ 3 other calls in file

115
116
117
118
119
120
121
122
123
124
var isRGBAUncompressed = false;

switch (fourCC) {
  case FOURCC_DXT1:
    blockBytes = 8;
    dds.format = _three.RGB_S3TC_DXT1_Format;
    break;

  case FOURCC_DXT3:
    blockBytes = 16;
fork icon0
star icon1
watch icon1

+ 12 other calls in file

Other functions in three

Sorted by popularity

function icon

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