Difference between revisions of "Texture Override"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
[[Category:d3t]] | [[Category:d3t]] | ||
Untested. | Untested. | ||
= SDTextureOverride.json = | = SDTextureOverride.json = | ||
This JSON is used for mapping HD textures to the SD (original) textures. <br> | This JSON is used for mapping HD textures to the SD (original) textures. <br> | ||
Line 23: | Line 24: | ||
| image || 0 - 6 || Used for loading fonts (fontdef) | | image || 0 - 6 || Used for loading fonts (fontdef) | ||
|} | |} | ||
=Headerless Textures= | |||
Some textures with the PNG extension are headerless DDS files. | |||
Why they did that is a mystery. |
Revision as of 21:45, 23 January 2019
Untested.
SDTextureOverride.json
This JSON is used for mapping HD textures to the SD (original) textures.
It consists out of an "Mappings" array which holds entries with the source texture path and the destination texture path.
Texture modifiers
When an texture gets used it can have different modifiers.
When adding modifiers to an texture path string the '?' symbol is used.
To give the modifier a value the '=' symbol is used following the value.
When adding multiple modifiers each modifier is seperated by the '&' symbol.
Example: gacrmegg_1.png?usage=0&alphamode=0
Name | Values | Description |
---|---|---|
usage | 0 | Unknown (Shader sampler selection?) |
alphamode | 0 - 2 | Texture alpha mode? |
font | 0 - 6 | Used for loading fonts (fontdef) |
image | 0 - 6 | Used for loading fonts (fontdef) |
Headerless Textures
Some textures with the PNG extension are headerless DDS files. Why they did that is a mystery.