Difference between revisions of "TXMT/Parameters/CategorisedList/stdMatAlpha"
| Line 14: | Line 14: | ||
=<center>TXMT/Parameters/CategorisedList/stdMatAlpha</center>= | =<center>TXMT/Parameters/CategorisedList/stdMatAlpha</center>= | ||
| − | There are | + | There are 6 known member parameters in this group. The following is a simple numeric hierarchy to show how these TXMT parameters work according to these known pathways: |
<br><br> | <br><br> | ||
| − | 0. The | + | ==[http://www.sims2wiki.info/TXMT/Parameters/stdMatAlphaBlendMode stdMatAlphaBlendMode]== |
| + | |||
| + | 0. The parameter to set for activation and deactivation of the Alpha Blending Transparency for a given TXMT file or a given material shader predefined material is | ||
::* [http://www.sims2wiki.info/TXMT/Parameters/stdMatAlphaBlendMode stdMatAlphaBlendMode] | ::* [http://www.sims2wiki.info/TXMT/Parameters/stdMatAlphaBlendMode stdMatAlphaBlendMode] | ||
<br> | <br> | ||
1. If the value is "none", then the Alpha Blending Transparency is disabled. | 1. If the value is "none", then the Alpha Blending Transparency is disabled. | ||
| + | [http://www.sims2wiki.info/TXMT/Parameters/alphaBlendingOn alphaBlendingOn] will in turn be set as "false". (NOT in txmt files but in material shaders) | ||
<br> | <br> | ||
2. If the value is "blend", then the Alpha Blending Transparency is enabled. | 2. If the value is "blend", then the Alpha Blending Transparency is enabled. | ||
| + | [http://www.sims2wiki.info/TXMT/Parameters/alphaBlendingOn alphaBlendingOn] will in turn be set as "true". (NOT in txmt files but in material shaders) | ||
<br> | <br> | ||
| − | 3. If the value is "additive", then the Additive Alpha Blending Transparency is enabled. | + | 3. If the value is "additive", then the Additive Alpha Blending Transparency is enabled and it "scales colors against alpha and added to destination". |
<br> | <br> | ||
| − | 4. If the value is " | + | 4. If the value is "addNoSrcAlphaScale", then color and alpha are added to destination. |
<br> | <br> | ||
| − | + | ==[http://www.sims2wiki.info/TXMT/Parameters/stdMatAlphaTestEnabled stdMatAlphaTestEnabled]== | |
| + | 0. The parameter to set for activation and deactivation of the Alpha Blending Transparency for a given TXMT file or a given material shader predefined material is | ||
| + | ::* [http://www.sims2wiki.info/TXMT/Parameters/stdMatAlphaTestEnabled stdMatAlphaTestEnabled] | ||
| + | <br> | ||
| + | 1. If the value is "true"/"1", then to "turn this on for mask surfaces" | ||
| + | <br> | ||
| + | 2. If the value is "false"/"0", then not to "turn this on for mask surfaces" | ||
| + | |||
| + | <br> | ||
| + | |||
| + | ==[http://www.sims2wiki.info/TXMT/Parameters/stdMatAlphaMultiplier stdMatAlphaMultiplier]== | ||
| + | * "Straight multiplier on alpha channel" | ||
| + | |||
| + | <br> | ||
| + | |||
| + | ==[http://www.sims2wiki.info/TXMT/Parameters/stdMatAlphaRefValue stdMatAlphaRefValue]== | ||
| + | * "For mask surfaces, threshold value for alpha" | ||
| + | |||
| + | <br> | ||
| + | |||
| + | ==[http://www.sims2wiki.info/TXMT/Parameters/stdMatUntexturedDiffAlpha stdMatUntexturedDiffAlpha]== | ||
| + | * | ||
| + | |||
| + | <br> | ||
| − | * | + | ==Source Reference== |
| + | * UnlitTextureAlphaShaders | ||
| + | <pre> | ||
| + | define UnlitTextureAlpha() | ||
| + | material | ||
| + | create UnlitTextureAlphaShaders() | ||
| + | end | ||
| + | enddef | ||
| − | * | + | define UnlitTextureAlphaShaders() |
| + | set stdMatLightingEnabled false | ||
| + | set stdMatAlphaBlendMode blend | ||
| + | setf stdMatAlphaMultiplier (($stdMatDiffCoef).w) | ||
| + | setb stdMatBaseTextureEnabled true | ||
| + | setb stdMatSpecMaskTextureEnabled false | ||
| + | setb stdMatNormalMapTextureEnabled false | ||
| + | set stdMatDiffCoef ($stdMatDiffCoef * ($deprecatedStdMatInvDiffuseCoeffMultiplier).xxx) | ||
| + | create StandardShaders() | ||
| + | enddef | ||
| + | </pre> | ||
| + | * AdditiveTextureBlendShaders | ||
| + | <pre> | ||
| + | define AdditiveTextureBlend() | ||
| + | material | ||
| + | create AdditiveTextureBlendShaders() | ||
| + | end | ||
| + | enddef | ||
| − | * | + | define AdditiveTextureBlendShaders() |
| + | set stdMatLightingEnabled false | ||
| + | set stdMatAlphaBlendMode additive | ||
| + | setf stdMatAlphaMultiplier ($blendStrength) | ||
| + | setb stdMatBaseTextureEnabled true | ||
| + | setb stdMatSpecMaskTextureEnabled false | ||
| + | setb stdMatNormalMapTextureEnabled false | ||
| + | set stdMatDiffCoef ($stdMatDiffCoef * ($deprecatedStdMatInvDiffuseCoeffMultiplier).xxx) | ||
| + | create StandardShaders() | ||
| + | enddef | ||
| − | + | </pre> | |
Revision as of 20:48, 15 April 2007
|
|
Contents |
TXMT/Parameters/CategorisedList/stdMatAlpha
There are 6 known member parameters in this group. The following is a simple numeric hierarchy to show how these TXMT parameters work according to these known pathways:
stdMatAlphaBlendMode
0. The parameter to set for activation and deactivation of the Alpha Blending Transparency for a given TXMT file or a given material shader predefined material is
1. If the value is "none", then the Alpha Blending Transparency is disabled.
alphaBlendingOn will in turn be set as "false". (NOT in txmt files but in material shaders)
2. If the value is "blend", then the Alpha Blending Transparency is enabled.
alphaBlendingOn will in turn be set as "true". (NOT in txmt files but in material shaders)
3. If the value is "additive", then the Additive Alpha Blending Transparency is enabled and it "scales colors against alpha and added to destination".
4. If the value is "addNoSrcAlphaScale", then color and alpha are added to destination.
stdMatAlphaTestEnabled
0. The parameter to set for activation and deactivation of the Alpha Blending Transparency for a given TXMT file or a given material shader predefined material is
1. If the value is "true"/"1", then to "turn this on for mask surfaces"
2. If the value is "false"/"0", then not to "turn this on for mask surfaces"
stdMatAlphaMultiplier
- "Straight multiplier on alpha channel"
stdMatAlphaRefValue
- "For mask surfaces, threshold value for alpha"
stdMatUntexturedDiffAlpha
Source Reference
- UnlitTextureAlphaShaders
define UnlitTextureAlpha()
material
create UnlitTextureAlphaShaders()
end
enddef
define UnlitTextureAlphaShaders()
set stdMatLightingEnabled false
set stdMatAlphaBlendMode blend
setf stdMatAlphaMultiplier (($stdMatDiffCoef).w)
setb stdMatBaseTextureEnabled true
setb stdMatSpecMaskTextureEnabled false
setb stdMatNormalMapTextureEnabled false
set stdMatDiffCoef ($stdMatDiffCoef * ($deprecatedStdMatInvDiffuseCoeffMultiplier).xxx)
create StandardShaders()
enddef
- AdditiveTextureBlendShaders
define AdditiveTextureBlend()
material
create AdditiveTextureBlendShaders()
end
enddef
define AdditiveTextureBlendShaders()
set stdMatLightingEnabled false
set stdMatAlphaBlendMode additive
setf stdMatAlphaMultiplier ($blendStrength)
setb stdMatBaseTextureEnabled true
setb stdMatSpecMaskTextureEnabled false
setb stdMatNormalMapTextureEnabled false
set stdMatDiffCoef ($stdMatDiffCoef * ($deprecatedStdMatInvDiffuseCoeffMultiplier).xxx)
create StandardShaders()
enddef