Materials (Metroid Prime): Difference between revisions
m
→Material Animations
>Aruki |
>Aruki |
||
Line 594: | Line 594: | ||
|} | |} | ||
A material can have multiple animations; each animation will generate a separate texture matrix, which can then be used by texgen to transform the texture coordinates accordingly. The structure of the animations themselves is somewhat simple. Each animation has a 32-bit ''mode'' setting, followed by a number of float parameters. The number and usage of these float parameters varies depending on what mode is set. There are | A material can have multiple animations; each animation will generate a separate texture matrix, which can then be used by texgen to transform the texture coordinates accordingly. The structure of the animations themselves is somewhat simple. Each animation has a 32-bit ''mode'' setting, followed by a number of float parameters. The number and usage of these float parameters varies depending on what mode is set. There are 8 possible modes, but only modes 2 through 5 are known. | ||
For all of the following modes, ''s'' refers to ''the amount of time passed, in seconds''. | For all of the following modes, ''s'' refers to ''the amount of time passed, in seconds''. |