/** Default scene sets is a scene that has automatically created camera node. */
var DefaultScene=Scene.extend({ 
	init: function() {
		this._super();
		
		// Create default camera node and add camera component to it
		this.root.name="Root";
		
		this.cameraNode=new Node("Camera");
		this.cameraComponent=this.cameraNode.addComponent(new PerspectiveCamera());
		this.cameraComponent.aspect=false; // Forces PerspectiveCamera to autodetect aspect ratio
		this.camera=this.cameraComponent.camera;	///< Main camera used for rendering scene. Beware! This is not camera component meaning that its view matrix gets overwritten by camera component each frame
		this.root.addNode(this.cameraNode);
		
		this.lightNode=new Node("Light");
		this.light=new Light();
		this.light.color= new Color(1, 1, 0.98, 1);
		this.light.intensity = 1.15;
		this.light.setLightDirection(vec3.fromValues(0.9, 1.0, 0.9));
		this.lightNode.addComponent(this.light);
		this.root.addNode(this.lightNode);
	}
});
/** Default scene sets is a scene that has automatically created camera node. */
var DefaultScene=Scene.extend({
	init: function() {
		this._super();

		// Create default camera node and add camera component to it
		this.root.name="Root";

		this.cameraNode=new Node("Camera");
		this.cameraComponent=this.cameraNode.addComponent(new PerspectiveCamera());
		this.cameraComponent.aspect=false; // Forces PerspectiveCamera to autodetect aspect ratio
		this.camera=this.cameraComponent.camera;	///< Main camera used for rendering scene. Beware! This is not camera component meaning that its view matrix gets overwritten by camera component each frame
		this.root.addNode(this.cameraNode);

		this.lightNode=new Node("Light");
		this.light=new Light();
		this.light.color= new Color(1, 1, 1, 1);
		this.light.intensity = 1.0;
		this.light.setLightDirection(vec3.fromValues(0.9, 1.0, 0.9));
		this.lightNode.addComponent(this.light);
		this.root.addNode(this.lightNode);
	}
});
Set default light intensity to 1.0