#VRML V2.0 utf8

NAME neutral PhBXYZSpectrum {xyz 1 1 1}

NAME DiffuseWhite PhBHomogeneousSurface {
   bsdf PhBSimpleBSDF {
      intensity 0.8
      spectrum USE neutral 
      scatterer PhBDiffuseReflector {}
   }
}

NAME Light PhBHomogeneousSurface {
   edf PhBEDF {
      intensity 10000.   		# [lux]
      spectrum USE neutral
      emitter PhBTextureEmitter 
      {
	 texture PhBImageTexture 
	 {  url "gradient.ppm"
	    clamping FALSE
	    repeating TRUE }
	 channel 1
      }
   }
}

Transform {
   children [ Shape {             # interesting looking sphere
      geometry Box { size 10 .1 10 }
      appearance PhBAppearance {
	 surface USE DiffuseWhite
      }
   }, Transform {                
      translation 0 10 0
      children Shape {
	 geometry Sphere { radius 0.1 }
	 appearance PhBAppearance {
	    surface USE Light
	 }
      }
   }
     ]
}


