Difference between revisions of "TXMT/Parameters/CategorisedList/stdMatAlpha"

From SimsWiki
Jump to: navigation, search
 
 
(2 intermediate revisions by one user not shown)
Line 14: Line 14:
 
=<center>TXMT/Parameters/CategorisedList/stdMatAlpha</center>=
 
=<center>TXMT/Parameters/CategorisedList/stdMatAlpha</center>=
  
There are 4 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:
+
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 first-most 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]==
 +
 
 +
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 "blend", then the Alpha Blending Transparency is enabled.
+
4. If the value is "addNoSrcAlphaScale", then color and alpha are added to destination.
  
 
<br>
 
<br>
  
"additive scales colors against alpha and adds to destination"
+
==[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"
 +
* An essential factor with or without a potential co-factor [http://www.sims2wiki.info/TXMT/Parameters/stdMatUntexturedDiffAlpha stdMatUntexturedDiffAlpha] for alpha or alpha scale.
 +
 +
<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]==
 +
* 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 [http://www.sims2wiki.info/TXMT/Parameters/stdMatAlphaMultiplier stdMatAlphaMultiplier] for alpha or alpha scale.
 +
 +
<br>
  
* [http://www.sims2wiki.info/TXMT/Parameters/stdMatAlphaMultiplier stdMatAlphaMultiplier]
+
==Source Reference==
 +
* UnlitTextureAlphaShaders
 +
<pre>
 +
define UnlitTextureAlpha()
 +
  material
 +
      create UnlitTextureAlphaShaders()
 +
  end
 +
enddef
  
* [http://www.sims2wiki.info/TXMT/Parameters/stdMatAlphaRefValue stdMatAlphaRefValue]
+
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
  
* [http://www.sims2wiki.info/TXMT/Parameters/stdMatAlphaTestEnabled stdMatAlphaTestEnabled]
+
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
  
Still under construction, sorry, I've to rush suddenly :P ...
+
</pre>

Latest revision as of 18:53, 17 April 2007

Links back to the txmt Parameter Listings

* Alphabetically Sequenced List

* Categorised List

Contents

[edit]
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:



[edit] 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.


[edit] 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"


[edit] stdMatAlphaMultiplier

  • "Straight multiplier on alpha channel"
  • An essential factor with or without a potential co-factor stdMatUntexturedDiffAlpha for alpha or alpha scale.


[edit] stdMatAlphaRefValue

  • "For mask surfaces, threshold value for alpha"


[edit] 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.


[edit] 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

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox