The VolumeObject shader is a special shader designed to be used with the VolumeObject entity.
The VolumeObject requires the VolumeObject shader in order to render. A basic example material can be found in materials/clouds/volumeobject.mtl
or you can create one with your own settings.
Material Parameter | Description |
---|---|
Diffuse Color | Defines color for shadowed areas of the the volume object. It's modulated with the current sky color. |
Specular Color | Defines color for directly lit areas of the volume object. It's modulated with the current sun color. |
Although some parameters are exposed on a material level, most visual changes are done through Time of Day.
Shader Params | Description |
---|---|
Alpha Saturation | Alpha saturation of the cloud texture. |
Attentuation | Attenuation of the light scattered through the cloud. |
SkyColorMultiplier | Multiplier for the Sky Color. |
StepSize | Step size through the cloud texture. |
SunColorMultiplier | Multiplier for the Sun Color. |
Volume objects expose the following shader generation parameters via the Shader Generation Params section inside the Material editor.
Shader Gen Param | Description |
---|---|
Soft Intersections | Enables soft intersections with (opaque) scene geometry. Consider enabling this feature only for volume objects that need it due to increased pixel shading cost. |
Back Lighting | Enables back lighting of volume objects. The silhouette will slightly glow when viewed against the sun. |
Soft Jittering | Softens the effect of jittering on volume objects. |