Exemplo n.º 1
0
        public void InitRender(UnityEngine.Camera camera)
        {
            sceneData.CameraRef        = camera;
            sceneData.CameraTransCache = camera.transform;
            if (lighting == null)
            {
                lighting = new LightingModify();
            }
            if (fog == null)
            {
                fog = new FogModify();
            }

            UpdateEnv();

            SceneData.editorSetRes = SetRes;
            if (shadowMapCb == null)
            {
                shadowMapCb = new CommandBuffer {
                    name = "Editor Shadow Map Cb"
                }
            }
            ;

            shadowMat = AssetsConfig.GlobalAssetsConfig.ShadowCaster;
            UpdateShadowCaster();
        }

        void SetRes(System.Object obj, int type)
        {
            if (type == 0)
            {
                shadowMap = obj as RenderTexture;
            }
        }
Exemplo n.º 2
0
        public void InitRender(UnityEngine.Camera camera)
        {
            sceneData.CameraRef        = camera;
            sceneData.CameraTransCache = camera.transform;
            if (lighting == null)
            {
                lighting = new LightingModify();
            }
            if (fog == null)
            {
                fog = new FogModify();
            }

            UpdateEnv();
            if (shadowMapCb == null)
            {
                shadowMapCb = new CommandBuffer {
                    name = "Editor Shadow Map Cb"
                }
            }
            ;
        }