This article's documentation is for anything that uses the Source engine. Click here for more information.

VolumeCloud: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added note and warning about $time)
No edit summary
Line 17: Line 17:
; {{ent|$basetexture3}}
; {{ent|$basetexture3}}
: the third texture.
: the third texture.
: {{ent|$refractamount}}
; {{ent|$refractamount}}
: {{todo|What does it do}}
: {{todo|What does it do}}
: {{ent|$time}}
; {{ent|$time}}
: Needs [[List Of Material Proxies|CurrentTime]]. Speed of cloud movement depends on this. This value is set in the code.
: Needs [[List Of Material Proxies|CurrentTime]]. Speed of cloud movement depends on this. This value is set in the code.
{{note|For example, you can set it to: CurrentTime/6. This will make the clouds move slower.}}
{{note|For example, you can set it to: CurrentTime/6. This will make the clouds move slower.}}

Revision as of 20:52, 25 May 2024

VolumeCloud is a Pixel shader available in all Source 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.

Volume Cloud applied to various mesh

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.

Todo: Are "VolumeCloud" and "VolumeClouds" (the second one is found in Episode Two materials) shaders serve the same purpose ?

Supported Parameters

$basetexture
the first texture.
$basetexture2
the second texture.
$basetexture3
the third texture.
$refractamount
Todo: What does it do
$time
Needs CurrentTime. Speed of cloud movement depends on this. This value is set in the code.
Note.pngNote:For example, you can set it to: CurrentTime/6. This will make the clouds move slower.
Warning.pngWarning:Writing a static $time value to vmt will cause the clouds to freeze.

See also