$moss enable
Jump to navigation
Jump to search


This shader was created during development of Xen for Black Mesa and is designed to simulate presence of moss on surface. Instead of using texture itself for moss, this shader takes color that most of the texture consists of and then applies color to surface according to the parameters specified in
.vmt
.


Todo: Take the rocks model and materials from the game files and document how this shader works with models.
Parameters and Effects
$moss_enable
$moss_texture
$moss_ref_direction
$moss_angle_theta
$moss_angle_phi
$moss_angle_falloff
$moss_scale
$moss_scale_turn_on_absolute
Issues
Incompatible with new specular shader
New specular shader doesn't blending with moss shader.
An example with LightmappedGeneric. The specular should be yellow and not white.
An example VertexLitGeneric. The specular should be green and not white.
See also
- New Specular
- BlackMesa XenEngine: Part1 – Heavily Modified Source Engine (page from Black Mesa developer about Black Mesa engine, better known as XenEngine)