#VRML V2.0 utf8 # #
#return : [appearance] ; [material] ; #
#ex-appearance1.wrl 
# - no extra lighting,just that provided by the Appearance 
#   and Material 
# - examples of VRML appearance (just material)
# note that the definition of a material and/or an appearance 
#  lits the shape

#backgroung
Background { skyColor  1 1 1
}
# Camera
Viewpoint {
   position    0 8 16
   orientation 1 0 0 -0.24
   fieldOfView 0.785398
           }

# Illumination

# REFERENCE SPHERE(black) - no surface properties (everything = 0)
# actually it looks like a disk (as expected!)
Transform {
	translation 0 4 -4
	children [
		Shape {
		    geometry Sphere { radius 2}
		    appearance Appearance {
		        	material Material {
                                           ambientIntensity 0.
					   diffuseColor 0 0 0
                                           emissiveColor 0 0 0
                                           shininess 0
                                           specularColor 0 0 0
                                           transparency 0
					           }
					   }
			}
		 ]
           }

# LEFT RED SPHERE (it is a pure diffuse sphere without the 
#  specular and emissive components)
# we have the 3D illusion

Transform {
	translation -6 0 0
	children [
		Shape {
		    geometry Sphere { radius 2}
		    appearance Appearance {
		        	material Material {
                                           ambientIntensity 0.
					   diffuseColor 1 0 0
                                           emissiveColor 0 0 0
                                           shininess 0
                                           specularColor 0 0 0
                                           transparency 0
					           }
					   }
			}
		 ]
           }

# FIRST CENTRAL SPHERE
# it has only specular characteristics. Look the red color in
#  that region.

Transform {
        translation 0 0 0
	children [
		Shape {
		    geometry Sphere { radius 2 }
		    appearance Appearance {
		        	material Material {
                                           ambientIntensity 0.
 					   specularColor 1 0 0
                                           shininess 0.5
                                           transparency 0
					           }
					   }
			}
		 ]
           }

# RIGHT RED SPHERE (it is a pure emissive sphere, without diffuse
#   and specularcolor components). This sphere looks red because 
#   its emissor surface property. No 3D illusion, it looks like 
#   a disk

Transform {
	translation 6 0 0
	children [
		Shape {
		    geometry Sphere { radius 2}
		    appearance Appearance {
		        	material Material {
                                           ambientIntensity 0.
                                           diffuseColor 0 0 0
					   emissiveColor 1 0 0
                                           shininess 0
                                           transparency 0
					           }
					   }
			}
		 ]
           }


#