Geometry (Metroid Prime): Difference between revisions

m
imported>Jackoalan
(Discovered actual use of 2 'padding' fields)
>Aruki
Line 17: Line 17:
=== Normals ===
=== Normals ===


Normals can appear as either floats or shorts. In CMDL, this usually corresponds to the 0x2 bit in the flags value, and in MREA they will always appear as shorts; this is technically supposed to be set by the vertex format flag in the primitive data, though. If they appear as shorts, they should be divided by the mantissa value that appears on each surface (that value is almost always 0x8000).
Normals can appear as either floats or shorts. In CMDL, this usually corresponds to the 0x2 bit in the flags value, and in MREA they will always appear as shorts; this is technically supposed to be set by the vertex format flag in the primitive data, though. If they appear as shorts, they should be divided by the mantissa value that appears on each surface (that value is always 0x8000).


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