Geometry (Donkey Kong Country Returns): Difference between revisions

>Aruki
>Aruki
Line 19: Line 19:
=== Normals ===
=== Normals ===


Vertex normals are usually stored as shorts. To get the corresponding float value, read as a signed short and divide by 0x4000.
In the CMDL format, vertex normals are usually stored as shorts. To get the corresponding float value, read as a signed short and divide by 0x4000. In the MREA format, normals are never packed into shorts and are always stored as floats.


=== Vertex Color ===
=== Vertex Color ===
Anonymous user