Geometry (Metroid Prime): Difference between revisions
Jump to navigation
Jump to search
m
→Normals
imported>Jackoalan (Discovered actual use of 2 'padding' fields) |
>Aruki m (→Normals) |
||
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 | 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 === |