Water (shader)

From Valve Developer Community
Revision as of 12:58, 17 March 2025 by SirYodaJedi (talk | contribs) (Created page with "{{wip}} {{LanguageBar|title = Water (shader)}} Water does not ''need'' to use the {{mono|Water}} shader! If a less realistic effect is desired, or the water volume is oddly shaped, other shaders can be used, such as LightmappedGeneric or Refract. The method for creating the materials is the same. == Parameters == {{MatParam|%CompileWater|bool|This is needed to make a map using the material compile properly.}} {{MatParam|%CompileSlime|bool|Can be used instea...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Under construction.png
This page is actively undergoing a major edit.
As a courtesy, please do not edit this while this message is displayed.
If this page has not been edited for at least several hours to a few days, please remove this template. This message is intended to help reduce edit conflicts; please remove it between editing sessions to allow others to edit the page.

The person who added this notice will be listed in its edit history should you wish to contact them.

English (en)Translate (Translate)

Water does not need to use the Water shader! If a less realistic effect is desired, or the water volume is oddly shaped, other shaders can be used, such as LightmappedGeneric or Refract. The method for creating the materials is the same.

Parameters

%CompileWater %CompileSlime

$abovewater $bottommaterial

Note.pngNote:If the above water material does not have reflections, refractions, or $underwateroverlay: $abovewater can be omitted, $nocull can be used, and $bottommaterial can be set to the same material as the abovewater material.

$underwateroverlay

Fog

$fogenable $fogcolor

$fogstart $fogend

Other

$surfaceprop %tooltexture

WaterLOD proxy
This connects the water_lod_control entity in a level to the water’s internal parameters. This must be declared in the material for the LOD mechanisms to work properly.