$moss_enable
$moss_enable
is a material shader parameter available in Black Mesa.
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
.
Warning: This shader was never used by developers in Black Mesa campaign, may be incomplete and incompatible with other shaders, use carefully.
Todo: Take the rocks model and materials from the game files and document how this shader works with models.
Parameters and Effects
Toggle moss between enabled and disabled state. 1 - enabled, 0 - disabled.
Defines a diffuse texture that will use moss for color.
|
Inner angle value for displacement surfaces. Results depend on
$moss_angle_phi
and $moss_angle_falloff
.
|
Outer angle value for displacement surfaces. Results depend on
$moss_angle_theta
and $moss_angle_falloff
.
|
Falloff value for displacement surfaces. Results depend on
$moss_angle_theta
and $moss_angle_phi
.
|
Scale for moss. Effects nothing at least in Black Mesa: Definitive Edition.
Toggle moss scale between enabled and disabled state. 1 - enabled, 0 - disabled. Effects nothing at least in Black Mesa: Definitive Edition.
Issues
Incompatible with new specular shader
New specular shader doesn't blending with moss shader.
See also
- New Specular
- BlackMesa XenEngine: Part1 – Heavily Modified Source Engine (page from Black Mesa developer about Black Mesa engine, better known as XenEngine)