text: class Sky_Procedural{
  	constructor(){
  		//初始化3D配置
  		Laya3D.init(0, 0);
  		Laya.stage.scaleMode = Laya.Stage.SCALE_FULL;
  		Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;
  		Laya.Stat.show();
  	
  		//初始化3D场景
  		let scene = Laya.stage.addChild(new Laya.Scene3D());
  		
  		//初始化相机并设置清除标记为天空
  		let camera = scene.addChild(new Laya.Camera(0, 0.1, 100));
  		camera.addComponent(CameraMoveScript);
  		camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY;
  		
  		//初始化平行光
  		this.directionLight = scene.addChild(new Laya.DirectionLight()) ;
  		let mat = this.directionLight.transform.worldMatrix;
  		mat.setForward(new Laya.Vector3(1.0, -1.0, -1.0));
  		this.directionLight.transform.worldMatrix = mat;
  		this.rotation = new Laya.Vector3(-0.01, 0, 0);
  		
  		//初始化天空渲染器
  		let skyRenderer= scene.skyRenderer;
  		skyRenderer.mesh= Laya.SkyDome.instance;
  		skyRenderer.material= new Laya.SkyProceduralMaterial();
  
  		//旋转平行光,模拟太阳轨迹
  		Laya.timer.frameLoop(1, this, this.onFrameLoop);
  }
  
  	onFrameLoop(){
  		this.directionLight.transform.rotate(this.rotation);
  	}
  }
  
  
  //激活启动类
  new Sky_Procedural();