TXMT/Parameters/CategorisedList/stdMatAlpha
|
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"
- An essential factor with or without a potential co-factor stdMatUntexturedDiffAlpha for alpha or alpha scale.
stdMatAlphaRefValue
- "For mask surfaces, threshold value for alpha"
stdMatUntexturedDiffAlpha
- The value of the alpha channel when the base texture is used, so it affects the whole transparency of the base texture.
- A potential co-factor with stdMatAlphaMultiplier for alpha or alpha scale.
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