Materials (Metroid Prime): Difference between revisions
Jump to navigation
Jump to search
m
→Mode 6: Model Matrix
>Aruki |
>Aruki |
||
Line 655: | Line 655: | ||
This mode is similar to modes 0 and 1 in that it simulates reflective surfaces, but it only takes the model matrix into account, which means camera movement doesn't affect the reflection. It takes no parameters and it generates both a texture matrix and a post-transform matrix. | This mode is similar to modes 0 and 1 in that it simulates reflective surfaces, but it only takes the model matrix into account, which means camera movement doesn't affect the reflection. It takes no parameters and it generates both a texture matrix and a post-transform matrix. | ||
The texture matrix is simply the model matrix, with the translation values | The texture matrix is simply the model matrix, with the translation values set to 0. The post-transform matrix is set to the following: | ||
<pre>0.5, 0.0, 0.0, ModelMatrix[0][3] * 0.50000001, | <pre>0.5, 0.0, 0.0, ModelMatrix[0][3] * 0.50000001, |