UV Animations: Difference between revisions

Minor Mode6 translation scale fix
>Aruki
mNo edit summary
imported>Jackoalan
(Minor Mode6 translation scale fix)
 
(2 intermediate revisions by one other user not shown)
Line 129: Line 129:
|-
|-
| 7
| 7
| [[#Mode_7:_Convoluted reflection mode|Convoluted reflection mode]]
| [[#Mode_7:_Cylinder Environment|Cylinder Environment]]
| 2
| 2
| {{check}}
| {{check}}
Line 237: Line 237:
The texture matrix is simply the model matrix, with the translation values set to 0. The post-transform matrix is set to the following:
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.050000001,
0.0, 0.0, 0.5, ModelMatrix[1][3] * 0.5</pre>
0.0, 0.0, 0.5, ModelMatrix[1][3] * 0.050000001</pre>


==== Mode 7: Convoluted reflection mode ====
==== Mode 7: Cylinder Environment ====


Mode 7 takes two parameters and generates both a texture matrix and a post-transform matrix. Feel free to come up with a name for it.
Mode 7 takes two parameters and generates both a texture matrix and a post-transform matrix, projecting the UVs onto the surface of a cylinder, used almost exclusively on pipes.


The texture matrix is generated the same way as in mode 0; translation is ignored.
The texture matrix is generated the same way as in mode 0; translation is ignored.
Anonymous user