Materials (Metroid Prime): Difference between revisions
Jump to navigation
Jump to search
→Material Animations
>Aruki |
>Aruki |
||
Line 615: | Line 615: | ||
==== Mode 4/5: U/V Offset ==== | ==== Mode 4/5: U/V Offset ==== | ||
This mode can be used to scroll U and V independently from each other | This mode can be used to scroll U and V independently from each other. The same calcuation is done for both modes, with the only difference being whether the calculated offset is applied to U or V. there are four float parameter: ''scale'', ''numFrames'', ''step'', and ''offset''. | ||
<pre>float value = step * scale * (offset + s); | |||
float uv_offset = (float)(short)(float)(numFrames * fmod(value, 1.0f)) * step;</pre> | |||
[[Category:File Formats]] | [[Category:File Formats]] | ||
[[Category:Metroid Prime]] | [[Category:Metroid Prime]] | ||
[[Category:Metroid Prime 2: Echoes]] | [[Category:Metroid Prime 2: Echoes]] |