#VRML V2.0 utf8 Transform { translation -5 0 0 children Shape { appearance Appearance { material Material { diffuseColor 1 1 1 } texture TintedImageTexture { url "../images/shared/sky.gif" tintColor 1 0 0 } } geometry Box {} } } Transform { translation 0 0 0 children Shape { appearance Appearance { material Material { diffuseColor 1 1 1 } texture DEF MIDDLE_TINTED_TEXTURE TintedImageTexture { url "../images/shared/sky.gif" tintColor 1 1 1 } } geometry Box {} } } Transform { translation 5 0 0 children Shape { appearance Appearance { material Material { diffuseColor 1 1 1 } texture TintedImageTexture { url "../images/shared/sky.gif" tintColor .5 .5 0 } } geometry Box {} } } DEF TIME_SENSOR TimeSensor { loop TRUE cycleInterval 5 } DEF MIDDLE_TINT_INTERP ColorInterpolator { key [ 0 .1 .2 .3 .4 .5 .6 .7 .8 .9 1 ] keyValue [ 1 0 0, 1 .5 1, 1 .5 1, 1 1 0, 1 1 0, 0 1 1, 0 1 1, 1 1 1, 1 1 1, 1 0 0, 1 0 0, ] } ROUTE TIME_SENSOR.fraction TO MIDDLE_TINT_INTERP.fraction ROUTE MIDDLE_TINT_INTERP.value TO MIDDLE_TINTED_TEXTURE.tintColor