From BZFlagWiki
Revision as of 22:42, 27 October 2007 by Tedius (Talk | contribs) (Hello Texmats. Needs some work.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The texture matrix object allows you to define how a texture will appear in an material. It can be used to manipulate still (fixed) textures as well as animated ones.


name example_texmat
scale 0.0 0.0 1.0 1.0 # u/v freqs, u/v scales
spin 0.0 # rotation freq
shift 0.0 0.0 # u/v freqs
center 0.5 0.5 # dynamic u/v center (for spin and scale)  
fixedscale 0.0 0.0 # time invariant u/v scale
fixedspin 0.0 # time invariant rotation
fixedshift 0.0 0.0 # time invariant u/v shift

Texture Matrix must be used in conjunction with the Material object using texmat.


Texture Matrix is often used to create the appearance of flowing water or lava with the "shift" argument.