$moss enable: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{langsp}}
{{langsp}}
[[File:MOSS.png|thumb|right|Moss shader example with [[LightmappedGeneric]], for <code>$moss_texture</code> used <code>xen/moss00_d</code>.]]
[[File:MOSS.png|thumb|right|Moss shader example with [[LightmappedGeneric]], for <code>$moss_texture</code> used <code>xen/moss00_d</code>.]]
[[File:MOSS25.png|thumb|right|Moss shader example with [[VertexLitGeneric]], for <code>$moss_texture</code> used <code>xen/bubblemoss</code>.]]
[[File:MOSS25.png|thumb|right|Moss shader example with [[VertexLitGeneric]], for <code>$moss_texture</code> used <code>models/props_xen/moss_test/bubblemoss</code>.]]
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]] and [[LightmappedGeneric]] shaders. It was created during development of [[Xen]] for {{bms|4}} and was designed to simulate presence of moss on surface.
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]] and [[LightmappedGeneric]] shaders. It was created during development of [[Xen]] for {{bms|4}} and was designed to simulate presence of moss on surface.


Line 7: Line 7:
All parameters works in the same way for both shaders.
All parameters works in the same way for both shaders.


In {{bms|4}} 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 <code>models/props_xen/moss_test/bubblemoss</code> texture. This shader was never used by developers in {{bms|4}} campaign, may be incomplete and incompatible with other shaders, use carefully.}}
In {{bms|4}} 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 <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]]).
{{back | Black Mesa Level Creation}}
{{back | Black Mesa Level Creation}}



Revision as of 09:32, 1 June 2024

English (en)Translate (Translate)
Moss shader example with LightmappedGeneric, for $moss_texture used xen/moss00_d.
Moss shader example with VertexLitGeneric, for $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 and LightmappedGeneric shaders. It was created during development of Xen for Black Mesa Black Mesa and was designed to simulate presence of moss on surface.

For VertexLitGeneric, it uses specified texture. For LightmappedGeneric, 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. All parameters works in the same way for both shaders.

In Black Mesa Black Mesa was used for models\props_xen\moss_test\sphereofchon.mdl and models\props_xen\moss_test\test_moss001.mdl models. Both using 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).

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