HTML Encoding and Default Values⤴
<X3DFogNode
bind='false'
color='(1,1,1)'
description='""'
fogType='"LINEAR"'
isActive='false'
metadata='X3DMetadataObject'
visibilityRange='0'
></X3DFogNode>
Inheritance⤴
- X3DNode(18)
- X3DChildNode(12)
- X3DBindableNode(5)
- X3DFogNode (1)
- Fog
Constructor⤴
-
X3DFogNode(ctx)⤴
-
Constructor for X3DFogNode
Parameters:
Name Type Argument Default Description ctxObject <optional>
null context object, containing initial settings like namespace
Fields⤴
These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via
DOM functions (i.e., using
setAttribute("myFieldName", "myFieldValue") and
getAttribute("myFieldName")).
| Name | Type | Default Value | Range | Inheritance | Standard | Description |
|---|---|---|---|---|---|---|
| bind | SFBool | false | X3DBindableNode |
|
Pushes/pops the node on/from the top of the bindable stack | |
| color | SFColor | (1,1,1) | [0,1] |
|
Objects located outside the visibilityRange from the viewer are drawn with a constant colour of color. Objects very close to the viewer are blended very little with the fog color. | |
| description | SFString | "" | X3DBindableNode |
|
Description of the bindable node | |
| fogType | SFString | "LINEAR" | {"LINEAR","EXPONENTIAL"} |
|
The fogType field controls how much of the fog colour is blended with the object as a function of distance. If fogType is "LINEAR", the amount of blending is a linear function of the distance, resulting in a depth cueing effect. If fogType is "EXPONENTIAL," an exponential increase in blending is used, resulting in a more natural fog appearance. | |
| isActive | SFBool | false | X3DBindableNode |
|
||
| metadata | SFNode | X3DMetadataObject | X3DNode |
|
Field to add metadata information | |
| visibilityRange | SFFloat | 0 | [0, -inf] |
|
The visibilityRange specifies the distance in length base units (in the local coordinate system) at which objects are totally obscured by the fog. A visibilityRange of 0.0 disables the Fog node. The visibilityRange is affected by the scaling transformations of the Fog node's parents; translations and rotations have no affect on visibilityRange. |
documentation