From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:Godot compressed texture" |
|---|
| claim | "A Godot 4 imported 2D texture (.ctex) starts with GST2 followed by u32 version (loader accepts up to 1), u32 width, u32 height, u32 flags (bit 23 mipmaps, 24 detect 3D, 26 normal, 27 roughness), u32 mipmap limit and 3 reserved u32." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Godot compressed texture" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "47 53 54 32" |
|---|
| offset | 0 |
|---|
| meaning | "GST2 CompressedTexture2D" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Header parse in _load_data; flag enum in compressed_texture.h lines 53-58." |
|---|
| repo | "https://github.com/godotengine/godot" |
|---|
| commit | "81ab961f91066a63bcbf3ec340962bb1a1ada558" |
|---|
| path | "scene/resources/compressed_texture.cpp" |
|---|
| lines | "44-79" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "GST2 magic" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T21:57:23.542Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T13:17:57.445Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read compressed_texture.cpp 40-80 and the FormatBits enum in compressed_texture.h at 81ab961: header GST2, version <= FORMAT_VERSION 1, width, height, data-format word, mipmap limit, 3 reserved words; bits 23/24/26/27." |
|---|
|
|
|---|