$moss_enable

 
$moss_enable  is a   material shader parameter  available in  Black Mesa.
 Black Mesa. 
 
  $moss_texture used models/props_xen/moss_test/bubblemoss.This is procedural moss implementation, which is triplanar projection shader that allows you to project additional texture that mixes with normalmap. This shader available for VertexLitGeneric, LightmappedGeneric and Lightmapped_4WayBlend shaders. It was created during development of Xen for  Black Mesa and was designed to simulate presence of moss on surface.
 Black Mesa and was designed to simulate presence of moss on surface.
For VertexLitGeneric, it uses the specified texture. For LightmappedGeneric and Lightmapped_4WayBlend, instead of using the texture itself for moss, this shader takes color that most of the texture consists of and then applies color to the surface according to the parameters specified in .vmt.
All parameters works in the same way for both shaders.
In  Black Mesa it was used for
 Black Mesa it was used for models\props_xen\moss_test\sphereofchon.mdl and models\props_xen\moss_test\test_moss001.mdl models. Both using the models/props_xen/moss_test/bubblemoss texture. The final version of the game doesn't use this shader in any of the maps. May be incompatible with some shaders (as it was with $phong).
This shader was used in  Black Mesa: Blue Shift. Besides moss, it was also used for dust caps and other small details.
 Black Mesa: Blue Shift. Besides moss, it was also used for dust caps and other small details. 
This shader also should be good for a snow layer.
 Note:There is no
Note:There is no  Hammer preview for this shader.
 Hammer preview for this shader. Bug:This shader doesn't blend with new specular and $phong.
Bug:This shader doesn't blend with new specular and $phong.
| 
 | 
Parameters and Effects
| 
 
 | 
| 
 | 
$moss_angle_phi and $moss_angle_falloff. Works in a similar way for VertexLitGeneric.
| 
 | 
$moss_angle_theta and $moss_angle_falloff. Works in similar way for VertexLitGeneric.
| 
 | 
$moss_angle_phi and $moss_angle_theta. Works in similar way for VertexLitGeneric.
| 
 | 
 Black Mesa: Definitive Edition.
 Black Mesa: Definitive Edition.See also
- New Specular
- BlackMesa XenEngine: Part1 – Heavily Modified Source Engine (page from Black Mesa developer about Black Mesa engine, better known as XenEngine)






























![$moss_ref_direction "[1 0 0]"](/w/images/thumb/6/6b/Moss1d%3D.jpg/774px-Moss1d%3D.jpg)
![$moss_ref_direction "[0 1 0]](/w/images/thumb/1/1d/Moss2d%3D.jpg/774px-Moss2d%3D.jpg)
![$moss_ref_direction "[0 0 1]](/w/images/thumb/c/c6/Moss3d%3D.jpg/774px-Moss3d%3D.jpg)














