コード例 #1
0
ファイル: LightSun.cs プロジェクト: scifiboi/ultraSandbox
        public LightSun(Vector3 color, Scene scene)
        {
            Parent = scene;
            Color  = new Vector4(color, 1);

            viewInfo      = new SunViewInfo(this, maxShadowDist, maxShadowDist);
            innerViewInfo = new SunViewInfo(this, innerShadowDist, maxShadowDist);

            /*
             * viewInfo.zNear = 0.6f;
             * viewInfo.zFar = 20f;
             * viewInfo.fovy = (float)Math.PI / 2f;
             * viewInfo.updateProjectionMatrix();
             */


            viewInfo.update();
            innerViewInfo.update();

            nextFarUpdate = gameWindow.frameTime;

            createRenderObject();

            shadowQuality = Settings.Instance.video.shadowQuality;
        }
コード例 #2
0
ファイル: LightSun.cs プロジェクト: Metapyziks/ultraSandbox
        public LightSun(Vector3 color, Scene scene)
        {
            Parent = scene;
            Color = new Vector4(color,1);

            viewInfo = new SunViewInfo(this, maxShadowDist, maxShadowDist);
            innerViewInfo = new SunViewInfo(this, innerShadowDist, maxShadowDist);
            /*
            viewInfo.zNear = 0.6f;
            viewInfo.zFar = 20f;
            viewInfo.fovy = (float)Math.PI / 2f;
            viewInfo.updateProjectionMatrix();
            */

            viewInfo.update();
            innerViewInfo.update();

            nextFarUpdate = gameWindow.frameTime;
        }
コード例 #3
0
ファイル: LightSun.cs プロジェクト: Richy19/ultraSandbox
        public LightSun(Vector3 color, Scene scene)
        {
            Parent = scene;
            Color = new Vector4(color,1);

            viewInfo = new SunViewInfo(this, maxShadowDist, maxShadowDist);
            innerViewInfo = new SunViewInfo(this, innerShadowDist, maxShadowDist);
            /*
            viewInfo.zNear = 0.6f;
            viewInfo.zFar = 20f;
            viewInfo.fovy = (float)Math.PI / 2f;
            viewInfo.updateProjectionMatrix();
            */

            viewInfo.update();
            innerViewInfo.update();

            nextFarUpdate = gameWindow.frameTime;

            createRenderObject();

            shadowQuality = Settings.Instance.video.shadowQuality;
        }