$moss enable: Difference between revisions
MyGamepedia (talk | contribs) |
MyGamepedia (talk | contribs) (Thanks to HECU Collective for the note in their .vmt files.) |
||
| Line 10: | Line 10: | ||
In {{bms|4}} it was used for <code>models\props_xen\moss_test\sphereofchon.mdl</code> and <code>models\props_xen\moss_test\test_moss001.mdl</code> models. Both using the <code>models/props_xen/moss_test/bubblemoss</code> 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]]). | In {{bms|4}} it was used for <code>models\props_xen\moss_test\sphereofchon.mdl</code> and <code>models\props_xen\moss_test\test_moss001.mdl</code> models. Both using the <code>models/props_xen/moss_test/bubblemoss</code> 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]]). | ||
{{note|There is no {{hammer|4}} preview for this shader.}} | {{note|There is no {{hammer|4}} preview for this shader.}} | ||
{{bug|hidetested=1|[[$seamless_scale]] is not compatible with [[$phong]] shader. | |||
{{expand|title=Example.| | |||
<gallery mode=packed heights=310px> | |||
File:seamlees_moss_0.jpg|Without <code>$seamless_scale</code>. | |||
File:seamlees_moss_1.jpg|With <code>$seamless_scale</code>. | |||
</gallery> | |||
}} | |||
}} | |||
{{bug|hidetested=1|This shader doesn't blend with [[New Specular|new specular]] and [[$phong]]. | |||
{{expand|title=Examples.| | |||
<gallery mode=nolines heights=256px widths=384px> | |||
Black Mesa Screenshot 2024.01.14 - 11.48.45.07=.jpg|An example with [[LightmappedGeneric]]. The specular should be yellow instead of white. | |||
Black Mesa Screenshot 2024.06.01 - 18.51.17.26=.jpg|An example with [[VertexLitGeneric]]. The specular should be green instead of white. | |||
</gallery> | |||
}} | |||
}} | |||
{{back | Black Mesa Level Creation}} | {{back | Black Mesa Level Creation}} | ||
| Line 84: | Line 100: | ||
}} | }} | ||
}} | }} | ||
== See also == | == See also == | ||
Revision as of 10:20, 8 January 2025
$moss_enable is a material shader parameter available in
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.
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 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).
|
|
Parameters and Effects
$moss_enable
$moss_texture
$moss_ref_direction
$moss_angle_theta
$moss_angle_phi
$moss_angle_falloff
$moss_blend_factor
$moss_scale
$moss_scale_turn_on_absolute
$seamless_scale
See also
- New Specular
- BlackMesa XenEngine: Part1 – Heavily Modified Source Engine (page from Black Mesa developer about Black Mesa engine, better known as XenEngine)