$translucent: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 5: | Line 5: | ||
=== Additional Parameters=== | === Additional Parameters=== | ||
====$additive==== | ====$additive==== | ||
"$additive" 1 | "$additive" 1 | ||
* Renders the texture additively (Its colors are added to, instead of replacing, what is displayed behind it). | * Renders the texture additively (Its colors are added to, instead of replacing, what is displayed behind it). | ||
====$alpha==== | |||
"$alpha" <float> | |||
* Scales material opacity by the 'float' number. | |||
* Every pixel with an alpha value less than 178 will be completely transparent in game. However, values close to this value will confuse the shader at distances.(see [[$alphatest]]) | |||
[[Category:List of Shader Parameters]] | [[Category:List of Shader Parameters]] |
Revision as of 16:42, 4 April 2008
Basic VMT syntax
"$translucent" 1
- Used with UnlitGeneric, VertexLitGeneric, LightmappedGeneric and many more shaders to enable a opacity map according to the alpha channel of the $basetexture.
- Warning: There are reports of a Rendering bug which reverses the overlay order of multiple translucent materials; so that the further material occludes the nearer one. The preferred solution appears to be to use $alphatest instead or $translucent.
Additional Parameters
$additive
"$additive" 1
- Renders the texture additively (Its colors are added to, instead of replacing, what is displayed behind it).
$alpha
"$alpha" <float>
- Scales material opacity by the 'float' number.
- Every pixel with an alpha value less than 178 will be completely transparent in game. However, values close to this value will confuse the shader at distances.(see $alphatest)