Difference between revisions of "TXMT/Parameters/stdMatTextureCoordAnimMode"
From SimsWiki
< TXMT | Parameters
| Line 43: | Line 43: | ||
* none | * none | ||
* tile | * tile | ||
| + | |||
| + | |||
| + | ==Sources== | ||
| + | de the EP0-TS2 material shader file "standarddefinitions.matShad" internally named "Predefined constants" with T-G-H-I 0xCD7FE87A 0x1C0532FA 0x32735013 0xFF25EEC1 | ||
| + | |||
| + | <pre> | ||
| + | # Macros for setting texture stage state for standard materials. | ||
| + | |||
| + | define StandardShaderTextureState(type) | ||
| + | texture $stdMat&{type}TextureName ${stdMat&{type}TextureParam} | ||
| + | ffTextureCoordsSource 0 | ||
| + | textureAddressing $stdMat&{type}TextureAddressingU $stdMat&{type}TextureAddressingV $stdMat&{type}TextureAddressingW | ||
| + | |||
| + | if (strcmp("${stdMatTextureCoordAnimMode}", "tile") = 0) | ||
| + | textureTileAnimation $stdMatTextureCoordTileAnimSpeed -tiles $stdMatTextureCoordAnimNumTiles -targetType fixedFunction | ||
| + | elseif (strcmp("${stdMatTextureCoordAnimMode}", "transform") = 0) | ||
| + | textureMatrixAnimation -targetType fixedFunction -aorigin $stdMatTextureCoordTfAnimOrigin -arot $stdMatTextureCoordTfAnimRotWaveform $stdMatTextureCoordTfAnimRotSpeed 0 $stdMatTextureCoordTfAnimRotStartEnd -ascale $stdMatTextureCoordTfAnimScaleWaveform $stdMatTextureCoordTfAnimScaleSpeed 0 $stdMatTextureCoordTfAnimScaleStartEnd -atrans $stdMatTextureCoordTfAnimTransWaveform $stdMatTextureCoordTfAnimTransSpeed 0 $stdMatTextureCoordTfAnimTransStart $stdMatTextureCoordTfAnimTransEnd | ||
| + | elseif (strcmp("${stdMatTextureCoordAnimMode}", "video") = 0) | ||
| + | trace("+++++++++++++++++++++++++++++++++++++++++++++\n") | ||
| + | sendNotifyString $shaderNotifyString | ||
| + | endif | ||
| + | enddef | ||
| + | |||
| + | </pre> | ||
Latest revision as of 17:50, 12 March 2007
|
|
Contents |
[edit] (MATD/txmt) property parameter: standard material: stdMatTextureCoordAnimMode
[edit] Parameter Type
[e] string / text
[edit] TXMT/MATD Parameter Group
[edit] Known designed values:
- none
- no textural animation
- tile
- tiled base textures with the animation frames in each specified cells
- transform
- translational animation actually including, simple translation, rotation, and re-scaling
- video
- usage unknown
[edit] Common Notes
- Type of texture coordinate animation
[edit] Common Default Value(s)
- none
- tile
[edit] Sources
de the EP0-TS2 material shader file "standarddefinitions.matShad" internally named "Predefined constants" with T-G-H-I 0xCD7FE87A 0x1C0532FA 0x32735013 0xFF25EEC1
# Macros for setting texture stage state for standard materials.
define StandardShaderTextureState(type)
texture $stdMat&{type}TextureName ${stdMat&{type}TextureParam}
ffTextureCoordsSource 0
textureAddressing $stdMat&{type}TextureAddressingU $stdMat&{type}TextureAddressingV $stdMat&{type}TextureAddressingW
if (strcmp("${stdMatTextureCoordAnimMode}", "tile") = 0)
textureTileAnimation $stdMatTextureCoordTileAnimSpeed -tiles $stdMatTextureCoordAnimNumTiles -targetType fixedFunction
elseif (strcmp("${stdMatTextureCoordAnimMode}", "transform") = 0)
textureMatrixAnimation -targetType fixedFunction -aorigin $stdMatTextureCoordTfAnimOrigin -arot $stdMatTextureCoordTfAnimRotWaveform $stdMatTextureCoordTfAnimRotSpeed 0 $stdMatTextureCoordTfAnimRotStartEnd -ascale $stdMatTextureCoordTfAnimScaleWaveform $stdMatTextureCoordTfAnimScaleSpeed 0 $stdMatTextureCoordTfAnimScaleStartEnd -atrans $stdMatTextureCoordTfAnimTransWaveform $stdMatTextureCoordTfAnimTransSpeed 0 $stdMatTextureCoordTfAnimTransStart $stdMatTextureCoordTfAnimTransEnd
elseif (strcmp("${stdMatTextureCoordAnimMode}", "video") = 0)
trace("+++++++++++++++++++++++++++++++++++++++++++++\n")
sendNotifyString $shaderNotifyString
endif
enddef