
Demo.prototype.sceneIntro = function () {
    this.setScene('intro');

    this.loader.addAnimation({
      image: ['backgroundEffect.color.fbo'],
      perspective: '3d',

      scale: [{ uniform3d: 18.0}],
      position:[{"x":0,"y":0,"z":45}],
      angle:[{
        degreesX:()=>180+2.5*Math.sin(-1.5*getSceneTimeFromStart()),
        degreesZ:()=>6.5*Math.sin(-1.5*getSceneTimeFromStart()*2.0)
       }],
      
      textureProperties: [{},{minFilter: 'LiunearFilter', magFilter: 'LinearFilter'}],
  });

  this.loader.addAnimation([{
    "text":{"string":'JUMALAUTA',"name":"multiSceneEffects/font.ttf"
    },
    "perspective":"3d", 
    "color":[{"r":0.0,"g":0.0,"b":0.0}],
    "position":[{"x":()=>0+Sync.get('Intro:Text')*.55-.03,"y":2.4+.03,"z":0}],
    "scale":[{"x":-7,"y":7}],
    "angle":[{"degreesZ":()=>5-2*Sync.get('Intro:Text')}]

    }]);

    this.loader.addAnimation([{
      "text":{"string":'PRESENTS',"name":"multiSceneEffects/font.ttf"
      },
      "perspective":"3d", 
      "color":[{"r":0.0,"g":0.0,"b":0.0}],
      "position":[{"x":()=>-Sync.get('Intro:Text')-.03,"y":()=>1.65-.25*Sync.get('Intro:Text')+.03,"z":0}],
      "scale":[{"x":-5,"y":5}],
      "angle":[{"degreesZ":()=>2*Sync.get('Intro:Text')-4}]

    }]);

    this.loader.addAnimation([{
      "text":{"string":'INNOCENT',"name":"multiSceneEffects/font.ttf"
      },
      "perspective":"3d", 
      "color":[{"r":0.0,"g":0.0,"b":0.0}],
      "position":[{"x":3-.03,"y":()=>Sync.get('Intro:Text')*3+.5+.03,"z":0}],
      "scale":[{"x":-3,"y":3}],
      "angle":[{"degreesZ":()=>15*Sync.get('Intro:Text')-15}]
    }]);


    this.loader.addAnimation([{
      "text":{"string":'FRUITS',"name":"multiSceneEffects/font.ttf"
      },
      "perspective":"3d", 
      "color":[{"r":0.0,"g":0.0,"b":0.0}],
      "position":[{"x":()=>Sync.get('Intro:Text')*.31+2.2-.03,"y":()=>-Sync.get('Intro:Text')*.25+.03,"z":0}],
      "scale":[{"x":-6,"y":6}],
      "angle":[{"degreesZ":()=>-4*Sync.get('Intro:Text')-3}]
    }]);
    
    this.loader.addAnimation([{
      "text":{"string":'AND',"name":"multiSceneEffects/font.ttf"
      },
      "perspective":"3d", 
      "color":[{"r":0.0,"g":0.0,"b":0.0}],
      "position":[{"x":()=>-Sync.get('Intro:Text')*.25+.45-.03,"y":()=>-Sync.get('Intro:Text')*.25+.03 ,"z":0}],
      "scale":[{"x":-3.5,"y":3.5}],
      "angle":[{"degreesZ":()=>7*Sync.get('Intro:Text')-35}]
    }]);
    
    this.loader.addAnimation([{
      "text":{"string":'VEGETABLES',"name":"multiSceneEffects/font.ttf"
      },
      "perspective":"3d", 
      "color":[{"r":0.0,"g":0.0,"b":0.0}],
      "position":[{"x":()=>-Sync.get('Intro:Text')*.35-2.1-.03,"y":()=>Sync.get('Intro:Text')*.25-.5+.03,"z":0}],
      "scale":[{"x":-6,"y":6}],
      "angle":[{"degreesZ":()=>-4*Sync.get('Intro:Text')+5}]
    }]);
    
    this.loader.addAnimation([{
      "text":{"string":'DEMO',"name":"multiSceneEffects/font.ttf"
      },
      "perspective":"3d", 
      "color":[{"r":0.0,"g":0.0,"b":0.0}],
      "position":[{"x":0-.03,"y":()=>-Sync.get('Intro:Text')*.25-1.2+.03,"z":0}],
      "scale":[{"x":-7,"y":7}],
      "angle":[{"degreesZ":()=>2*Sync.get('Intro:Text')-5}]
    }]);    
    
  this.loader.addAnimation([{
    "text":{"string":'JUMALAUTA',"name":"multiSceneEffects/font.ttf"
    },
    "perspective":"3d", 
    "color":[{"r":0.0,"g":0.0,"b":0.0}],
    "position":[{"x":()=>0+Sync.get('Intro:Text')*.55+.06,"y":2.4-.06,"z":0}],
    "scale":[{"x":-7,"y":7}],
    "angle":[{"degreesZ":()=>5-2*Sync.get('Intro:Text')}]

    }]);

    this.loader.addAnimation([{
      "text":{"string":'PRESENTS',"name":"multiSceneEffects/font.ttf"
      },
      "perspective":"3d", 
      "color":[{"r":0.0,"g":0.0,"b":0.0}],
      "position":[{"x":()=>-Sync.get('Intro:Text')+.06,"y":()=>1.65-.25*Sync.get('Intro:Text')-.06,"z":0}],
      "scale":[{"x":-5,"y":5}],
      "angle":[{"degreesZ":()=>2*Sync.get('Intro:Text')-4}]

    }]);

    this.loader.addAnimation([{
      "text":{"string":'INNOCENT',"name":"multiSceneEffects/font.ttf"
      },
      "perspective":"3d", 
      "color":[{"r":0.0,"g":0.0,"b":0.0}],
      "position":[{"x":3+.06,"y":()=>Sync.get('Intro:Text')*3+.5-.06,"z":0}],
      "scale":[{"x":-3,"y":3}],
      "angle":[{"degreesZ":()=>15*Sync.get('Intro:Text')-15}]
    }]);


    this.loader.addAnimation([{
      "text":{"string":'FRUITS',"name":"multiSceneEffects/font.ttf"
      },
      "perspective":"3d", 
      "color":[{"r":0.0,"g":0.0,"b":0.0}],
      "position":[{"x":()=>Sync.get('Intro:Text')*.31+2.2+.06,"y":()=>-Sync.get('Intro:Text')*.25-.06,"z":0}],
      "scale":[{"x":-6,"y":6}],
      "angle":[{"degreesZ":()=>-4*Sync.get('Intro:Text')-3}]
    }]);
    
    this.loader.addAnimation([{
      "text":{"string":'AND',"name":"multiSceneEffects/font.ttf"
      },
      "perspective":"3d", 
      "color":[{"r":0.0,"g":0.0,"b":0.0}],
      "position":[{"x":()=>-Sync.get('Intro:Text')*.25+.45+.06,"y":()=>-Sync.get('Intro:Text')*.25-.06 ,"z":0}],
      "scale":[{"x":-3.5,"y":3.5}],
      "angle":[{"degreesZ":()=>7*Sync.get('Intro:Text')-35}]
    }]);
    
    this.loader.addAnimation([{
      "text":{"string":'VEGETABLES',"name":"multiSceneEffects/font.ttf"
      },
      "perspective":"3d", 
      "color":[{"r":0.0,"g":0.0,"b":0.0}],
      "position":[{"x":()=>-Sync.get('Intro:Text')*.35-2.1+.06,"y":()=>Sync.get('Intro:Text')*.25-.5-.06,"z":0}],
      "scale":[{"x":-6,"y":6}],
      "angle":[{"degreesZ":()=>-4*Sync.get('Intro:Text')+5}]
    }]);
    
    this.loader.addAnimation([{
      "text":{"string":'DEMO',"name":"multiSceneEffects/font.ttf"
      },
      "perspective":"3d", 
      "color":[{"r":0.0,"g":0.0,"b":0.0}],
      "position":[{"x":0+.06,"y":()=>-Sync.get('Intro:Text')*.25-1.2-.06,"z":0}],
      "scale":[{"x":-7,"y":7}],
      "angle":[{"degreesZ":()=>2*Sync.get('Intro:Text')-5}]
    }]);    

    this.loader.addAnimation([{
      "text":{"string":'JUMALAUTA',"name":"multiSceneEffects/font.ttf"
      },
      "perspective":"3d", 
      "color":[{"r":1.0,"g":1.0,"b":1.0}],
      "position":[{"x":()=>0+Sync.get('Intro:Text')*.55,"y":2.4,"z":0}],
      "scale":[{"x":-7,"y":7}],
      "angle":[{"degreesZ":()=>5-2*Sync.get('Intro:Text')}]

      }]);

      this.loader.addAnimation([{
        "text":{"string":'PRESENTS',"name":"multiSceneEffects/font.ttf"
        },
        "perspective":"3d", 
        "color":[{"r":1.0,"g":1.0,"b":1.0}],
        "position":[{"x":()=>-Sync.get('Intro:Text'),"y":()=>1.65-.25*Sync.get('Intro:Text'),"z":0}],
        "scale":[{"x":-5,"y":5}],
        "angle":[{"degreesZ":()=>2*Sync.get('Intro:Text')-4}]
  
      }]);

      this.loader.addAnimation([{
        "text":{"string":'INNOCENT',"name":"multiSceneEffects/font.ttf"
        },
        "perspective":"3d", 
        "color":[{"r":1.0,"g":1.0,"b":1.0}],
        "position":[{"x":3,"y":()=>Sync.get('Intro:Text')*3+.5,"z":0}],
        "scale":[{"x":-3,"y":3}],
        "angle":[{"degreesZ":()=>15*Sync.get('Intro:Text')-15}]
      }]);


      this.loader.addAnimation([{
        "text":{"string":'FRUITS',"name":"multiSceneEffects/font.ttf"
        },
        "perspective":"3d", 
        "color":[{"r":1.0,"g":1.0,"b":1.0}],
        "position":[{"x":()=>Sync.get('Intro:Text')*.31+2.2,"y":()=>-Sync.get('Intro:Text')*.25,"z":0}],
        "scale":[{"x":-6,"y":6}],
        "angle":[{"degreesZ":()=>-4*Sync.get('Intro:Text')-3}]
      }]);
      
      this.loader.addAnimation([{
        "text":{"string":'AND',"name":"multiSceneEffects/font.ttf"
        },
        "perspective":"3d", 
        "color":[{"r":1.0,"g":1.0,"b":1.0}],
        "position":[{"x":()=>-Sync.get('Intro:Text')*.25+.45,"y":()=>-Sync.get('Intro:Text')*.25 ,"z":0}],
        "scale":[{"x":-3.5,"y":3.5}],
        "angle":[{"degreesZ":()=>7*Sync.get('Intro:Text')-35}]
      }]);
      
      this.loader.addAnimation([{
        "text":{"string":'VEGETABLES',"name":"multiSceneEffects/font.ttf"
        },
        "perspective":"3d", 
        "color":[{"r":1.0,"g":1.0,"b":1.0}],
        "position":[{"x":()=>-Sync.get('Intro:Text')*.35-2.1,"y":()=>Sync.get('Intro:Text')*.25-.5,"z":0}],
        "scale":[{"x":-6,"y":6}],
        "angle":[{"degreesZ":()=>-4*Sync.get('Intro:Text')+5}]
      }]);
      
      this.loader.addAnimation([{
        "text":{"string":'DEMO',"name":"multiSceneEffects/font.ttf"
        },
        "perspective":"3d", 
        "color":[{"r":1.0,"g":1.0,"b":1.0}],
        "position":[{"x":0,"y":()=>-Sync.get('Intro:Text')*.25-1.2,"z":0}],
        "scale":[{"x":-7,"y":7}],
        "angle":[{"degreesZ":()=>2*Sync.get('Intro:Text')-5}]
      }]);      
}


