InitialObjectDescriptor {
  objectDescriptorID 1
  ODProfileLevelIndication 0xFF
  sceneProfileLevelIndication 0xFE
  audioProfileLevelIndication 0xFF
  visualProfileLevelIndication 0xFF
  graphicsProfileLevelIndication 0xFE

  esdescr [
    ES_Descriptor {
      es_id 1
      decConfigDescr DecoderConfigDescriptor {
				streamType 3
				decSpecificInfo BIFSConfig {
				  isCommandStream true
				  pixelMetric false
				  pixelWidth 400
				  pixelHeight 300
				}
      }
    }
  ]
}

Group {
 children [
   WorldInfo {
   title "Fog test"
   info ["This shows a fog" "with varying visibility range" "" "GPAC Regression Tests" "$Date: 2007-07-27 09:46:08 $ - $Revision: 1.2 $" "(C) 2002-2004 GPAC Team"]
  }
	DEF AFOG Fog {color 0.2 0.2 0.2 visibilityRange 4}
  Transform {
   children [
   	Inline { url "./../auxiliary_files/nefertiti.wrl"}
   	DirectionalLight { color 1 0 0 direction 1 1 -1 }
    DEF TOUCH TouchSensor{}
   ]
  }
  DEF TS TimeSensor {cycleInterval 6.0  loop TRUE }
  DEF SI ScalarInterpolator{
	  key [0 0.5 1]
	  keyValue [16 0 16]
  }
  DEF V Valuator {
  	Factor1 -1
  	Offset1 1
  }
 ]
}

ROUTE TS.fraction_changed TO SI.set_fraction
ROUTE SI.value_changed TO AFOG.visibilityRange

ROUTE TOUCH.isOver TO V.inSFBool 
ROUTE V.outSFBool TO AFOG.set_bind

