$moss enable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 65: Line 65:
New specular shader doesn't blending with moss shader.
New specular shader doesn't blending with moss shader.
<gallery mode=nolines heights=256px widths=384px>
<gallery mode=nolines heights=256px widths=384px>
Black Mesa Screenshot 2024.01.14 - 11.48.45.07.png|An example. The specular should be yellow and not white.
Black Mesa Screenshot 2024.01.14 - 11.48.45.07.png|An example with [[LightmappedGeneric]]. The specular should be yellow and not white.
Black Mesa Screenshot 2024.06.01 - 18.51.17.26.png|An example [[VertexLitGeneric]]. The specular should be green and not white.
</gallery>
</gallery>



Revision as of 08:56, 1 June 2024

English (en)Translate (Translate)
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.
Todo:  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

$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.

See also