Show frames
Go to:
Related nodes. Attributes.
Env Fog is a volume object that fills the whole scene,
from the near to the far clipping planes. Env Fog is normally
semi-transparent, and tends to hide other objects. You can adjust
its attributes to change fog saturation, color, and how much of the
scene it fills.
There are two different fog simulations supported by this node.
Simple Fog is the default, and uses a small number of
attributes to make a simple representation of fog.
If you turn on the Physical Fog attribute, then EnvFog
switches to using a more sophisticated, physically-based model
to simulate fog. This model is more complex to use, but the results
can be much better. You can use Physical Fog to simulate complete
atmospheric environments, and you can even use it for underwater scenes.
Physical Fog works by simulating three things: the air (which has
its attributes for its light-scattering, density, transparency, etc),
the water vapour (fog) in the air (which has its own attributes for
the same things),
and optionally, a body of water which has its own light scattering
and other attributes. The combination of these effects creates
a realistic fog.
Aside from the attributes described here, the Env Fog node inherits
some of the attributes of its parent
Light Fog node.
In the table below, important attribtues have their names indicated
in bold in the description column.
This node is MP safe
Node name | Parents | Classification | MFn type | Compatible function sets |
---|
envFog | lightFog | shader/volume/fog | kEnvFogMaterial | kBase kNamedObject kDependencyNode kLightFogMaterial kEnvFogMaterial |
Related nodes
lightFog, lightLinker, lightList
Attributes (76)
The following quick index only shows top-level attributes (too many attributes to show them all): airColor (3), airDecay, airDensity, airLightScatter, airMaxHeight, airMinHeight, airOpacity (3), blendRange, distanceClipPlanes, endDistance, fogAxis, fogColor (3), fogDecay, fogDensity, fogFarDistance, fogLightScatter, fogMaxHeight, fogMinHeight, fogNearDistance, fogOpacity (3), fogType, layer, matrixEyeToWorld, maxHeight, minHeight, physicalFog, planetRadius, pointCamera (3), pointWorld (3), rayDirection (3), saturationDistance, startDistance, sunAzimuth, sunColor (3), sunElevation, sunIntensity, useDistance, useHeight, useLayer, waterColor (3), waterDensity, waterDepth, waterLevel, waterLightDecay, waterLightScatter, waterOpacity (3)
Long name (short name) | Type | Default | Flags |
---|
|
airColor
(acl )
| float3 | |     |
|
|
|
|
|
airDecay
(adc )
| double | 0.1 |      |
|
|
airDensity
(adn )
| double | 0.0 |      |
|
|
airLightScatter
(alc )
| double | 1.0 |      |
|
|
airMaxHeight
(axh )
| double | 50.0 |      |
|
|
airMinHeight
(amh )
| double | 0.0 |      |
|
|
airOpacity
(aop )
| float3 | |     |
|
| airOpacityR
(aor )
| float | 0.37 |      | |
|
| airOpacityG
(aog )
| float | 0.47 |      | |
|
| airOpacityB
(aob )
| float | 0.9 |      | |
|
|
fogAxis
(fax )
| enum | 0 |      |
|
|
blendRange
(br )
| float | 1.0 |     |
|
|
distanceClipPlanes
(dcp )
| enum | 1 |    |
|
|
endDistance
(ed )
| float | -1.0 |     |
|
|
matrixEyeToWorld
(e2w )
| fltMatrix | identity |      |
|
|
fogColor
(fcl )
| float3 | |     |
|
|
|
|
|
fogDecay
(fdc )
| double | 0.2 |      |
|
|
fogDensity
(fdn )
| double | 0.4 |      |
|
|
fogFarDistance
(ffd )
| float | 200.0 |     |
|
|
fogLightScatter
(flc )
| double | 1.0 |      |
|
|
fogMaxHeight
(fxh )
| double | 1.0 |      |
|
|
fogMinHeight
(fmh )
| double | 0.0 |      |
|
|
fogNearDistance
(fnd )
| float | 0.0 |     |
|
|
fogOpacity
(fop )
| float3 | |     |
|
| fogOpacityR
(for )
| float | 0.5 |      | |
|
| fogOpacityG
(fog )
| float | 0.5 |      | |
|
| fogOpacityB
(fob )
| float | 0.5 |      | |
|
|
fogType
(ftp )
| enum | 0 |      |
|
|
layer
(l )
| float | 1.0 |     |
|
|
maxHeight
(mxh )
| float | 1.0 |     |
|
|
minHeight
(mnh )
| float | -1.0 |     |
|
|
physicalFog
(sff )
| bool | false |      |
|
|
planetRadius
(prd )
| double | 1000.0 |      |
|
|
pointCamera
(p )
| float3 | 0.0, 0.0, 0.0 |     |
|
| pointCameraX
(px )
| float | 0.0 |     | |
|
| pointCameraY
(py )
| float | 0.0 |     | |
|
| pointCameraZ
(pz )
| float | 0.0 |     | |
|
|
pointWorld
(pw )
| float3 | 0.0, 0.0, 0.0 |     |
|
| pointWorldX
(pwx )
| float | 0.0 |     | |
|
| pointWorldY
(pwy )
| float | 0.0 |     | |
|
| pointWorldZ
(pwz )
| float | 0.0 |     | |
|
|
rayDirection
(r )
| float3 | 0.0, 0.0, 1.0 |     |
|
| rayDirectionX
(rx )
| float | 0.0 |     | |
|
| rayDirectionY
(ry )
| float | 0.0 |     | |
|
| rayDirectionZ
(rz )
| float | 0.0 |     | |
|
|
saturationDistance
(sdt )
| float | 100.0 |     |
|
|
startDistance
(sd )
| float | 0.0 |     |
|
|
sunAzimuth
(saz )
| double | 0.0 |      |
|
|
sunColor
(snc )
| float3 | |     |
|
|
|
|
|
sunElevation
(sel )
| double | 45.0 |      |
|
|
sunIntensity
(sin )
| double | 1.0 |      |
|
|
useDistance
(ud )
| bool | false |     |
|
|
useHeight
(uh )
| bool | false |     |
|
|
useLayer
(ul )
| bool | false |     |
|
|
waterColor
(wcl )
| float3 | |     |
|
| waterColorR
(wcr )
| float | 0.6 |      | |
|
| waterColorG
(wcg )
| float | 0.8 |      | |
|
| waterColorB
(wcb )
| float | 1.0 |      | |
|
|
waterDensity
(wdn )
| double | 0.0 |      |
|
|
waterDepth
(wdp )
| double | 50.0 |      |
|
|
waterLevel
(wlv )
| double | 0.0 |      |
|
|
waterLightDecay
(wdc )
| double | 2.0 |      |
|
|
waterLightScatter
(wlc )
| double | 1.0 |      |
|
|
waterOpacity
(wop )
| float3 | |     |
|
| waterOpacityR
(wor )
| float | 0.37 |      | |
|
| waterOpacityG
(wog )
| float | 0.47 |      | |
|
| waterOpacityB
(wob )
| float | 0.9 |      | |
|