-
Notifications
You must be signed in to change notification settings - Fork 0
/
optimize_textures.json
51 lines (51 loc) · 1.58 KB
/
optimize_textures.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"debug": false,
"verbose": true,
"incremental": true,
"recipes": [{
"pattern": "*",
"convert": {
"baseoptions": "-verbose",
"options": "$baseoptions"
},
"texconv": {
"baseoptions": "-pow2 -if FANT -nologo",
"options": "$baseoptions"
}
}, {
"pattern": "*.dds",
"texconv": {
"formatoptions": "-f BC7_UNORM",
"options": "$baseoptions $formatoptions"
},
"convert": {
"formatoptions": "-define dds:compression=none",
"options": "$baseoptions $formatoptions"
}
}, {
"pattern": "sub1\\*",
"texconv": {
"ratio": 0.5,
"options": "$baseoptions $formatoptions -m $mipmaps -w $width -h $height"
},
"convert": {
"options": "$baseoptions $formatoptions -modulate 100,90,105 -brightness-contrast 0x5"
}
}],
"tools": {
"info": {
"threads": "$cpucount",
"command": "\"$scriptdir\\thirdparty\\texdiag.exe\" info \"$sourcepath\""
},
"convert": {
"threads": "$cpucount",
"destination": "$scriptdir\\convert_output",
"command": "\"$scriptdir\\thirdparty\\convert.exe\" \"$sourcepath\" $options \"$destinationpath\""
},
"texconv": {
"threads": 1,
"destination": "$scriptdir\\texconv_output",
"command": "\"$scriptdir\\thirdparty\\texconv.exe\" $options -y -o \"$destinationdir\" \"$sourcepath\""
}
}
}