$moss enable/en

From Valve Developer Community
Jump to: navigation, search
Moss shader example, for $moss_texture used xen/moss00_d.

This shader was created during development of Xen for Black Mesa 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.pngWarning: This shader was never used by developers in Black Mesa Black Mesa campaign, may be incomplete and incompatible with other shaders, use carefully.
Blank image.pngTodo: Take the rocks model and materials from the game files and document how this shader works with models.
Black Mesa Level Creation

Parameters and Effects

Toggle moss between enabled and disabled state. 1 - enabled, 0 - disabled.
Defines a diffuse texture that will use moss for color.
Examples.


Defines direction for moss, the numbers can be negative.
Examples.


Inner angle value for displacement surfaces. Results depend on $moss_angle_phi and $moss_angle_falloff.
Examples.


Outer angle value for displacement surfaces. Results depend on $moss_angle_theta and $moss_angle_falloff.
Examples.


Falloff value for displacement surfaces. Results depend on $moss_angle_theta and $moss_angle_phi.
Examples.


Scale for moss. Effects nothing at least in Black Mesa Black Mesa: Definitive Edition.
Toggle moss scale between enabled and disabled state. 1 - enabled, 0 - disabled. Effects nothing at least in Black Mesa Black Mesa: Definitive Edition.

Issues

Incompatible with new specular shader

New specular shader doesn't blending with moss shader.

See also