Xj3D Fog Extensions Examples

Local Fog

PROFILE Immersive
COMPONENT xj3d_Fog:1

Background {
  skyColor [ 0 0 0.5 ]
}

Group {
  children [
    Transform {
      translation -2 0 0
      children [
        LocalFog {
	  color 1 0 0
	  visibilityRange 17
	}
        Shape {
          appearance Appearance {
            material Material {
              emissiveColor 0 1 0
            }
          }
          geometry DEF SPHERE_GEOM Sphere { radius 2 }
        }
      ]
    }
    Transform {
      translation 2 0 0
      children [
        LocalFog {
	  color 0 0 1
	  visibilityRange 17
	}
        Shape {
          appearance Appearance {
            material Material {
              emissiveColor 1 0 0
            }
          }
          geometry Sphere { radius 1 }
        }
      ]
    }
  ]
}

Fog Coordiantes


[ Xj3D Homepage | Xj3D @ Web3d | Screenshots | Dev docs | Dev Releases | Contributors | Getting Started ]
Last updated: $Date: 2004-09-13 06:15:40 $