VolumeCloud: Difference between revisions
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
{{MatParam|$time|float|Speed of cloud movement depends on this. This value is set in the code. ''Default: ''[[List Of Material Proxies|CurrentTime]]. {{note|For example, you can set it to: ''CurrentTime/6''. This will make the clouds move slower.}} {{warning|Writing a static $time value to vmt will cause clouds to freeze.}} }} | {{MatParam|$time|float|Speed of cloud movement depends on this. This value is set in the code. ''Default: ''[[List Of Material Proxies|CurrentTime]]. {{note|For example, you can set it to: ''CurrentTime/6''. This will make the clouds move slower.}} {{warning|Writing a static $time value to vmt will cause clouds to freeze.}} }} | ||
{{MatParam|$basetexturespeed|float|First texture movement speed.|only={{gmod}}}} | {{MatParam|$basetexturespeed|float|First texture movement speed.|only={{gmod}}}} | ||
{{MatParam|$ | {{MatParam|$basetexture2speed|float|Second texture movement speed.|only={{gmod}}}} | ||
{{MatParam|$ | {{MatParam|$basetexture3speed|float|Third texture movement speed.|only={{gmod}}}} | ||
=== See also === | === See also === |
Revision as of 21:53, 25 May 2024
VolumeCloud
is a Pixel shader available in all Source games. It takes three input materials and creates a cloud effect. It can be applied to models, and requires further testing for compatibility with proxies and parameters.
As the shader is intended to simulate moving cloud cover it does not receive shadows. The effect works best with mostly white, transparent noise but also works with non-transparent textures.
The various texture layers all rotate counter clockwise around the "center" of the UV map. Each layer has additive blending on the others, which allows the depth effect to look seamless with white clouds that layer upon each-other. All three base textures are required to be defined, each one in the sequence rotating at a lower speed.
Supported Parameters
$basetexture
$basetexture2
$basetexture3
$refractamount
$time
$basetexturespeed
$basetexture2speed
$basetexture3speed
See also
- Materials for models
- UnlitGeneric, A fullbright shader useful for skybox elements
- VertexLitGeneric, the standard shader for models
- Cloud, a similar shader