Scalar Interpolator Example


  Transform {
     rotation  0 1 0 5.24
     children [
        DEF SCLTGT DirectionalLight {
           ambientIntensity 0.75
        }
        DEF SCLINT ScalarInterpolator {
           key [0, 0.25, 0.5, 0.75, 1]
           keyValue [ 0, 0.5, 0, 1, 0 ]
        }
        Transform {
           translation 0 0.5 -10
           children [
              Shape {
                 appearance Appearance {
                    material Material {
                       emissiveColor 1 1 1
                    }
                 }
                 geometry Text {
                    string ["ScalarInterpolator"]
                    fontStyle FontStyle {
                       justify "MIDDLE"
                    }
                 }
              }
           ]
        }   
        Transform {
           translation 0 3 -10
           children [
              Shape {
                 appearance Appearance {
                    material Material {
                       diffuseColor 1 1 0 
                    }
                 }
                 geometry Cylinder {
                 }
              }
           ]
        }
     ]
  }