SceneRenderView mainRenderView; //Used to access GBuffer

        #endregion Fields

        #region Constructors

        public PostProcessReflectionsElementManager(SceneRenderView renderView)
            : base(renderView)
        {
            mainRenderView = renderView;
            basicImageShader = ResourceManager.Inst.GetShader("Generic2D");
            compositeShader = ResourceManager.Inst.GetShader("Composite");
        }
Example #2
0
        void InitializeRenderViews()
        {
            planarReflection = new SceneRenderView(scene, Matrix.Identity, Matrix.Identity, Vector3.Zero, 0.1f, 1000.0f, 256, 256, true);

            reflectionViews = new SceneRenderView[6];
            for (int i = 0; i < reflectionViews.Length; i++)
            {
                reflectionViews[i] = new SceneRenderView(scene, Matrix.Identity, Matrix.Identity, Vector3.Zero, 0.1f, 1000.0f, CubeMapSize, CubeMapSize, false);
                reflectionViews[i].SetCubeMapTarget(CubeMap, (CubeMapFace)i);
                //scene.AddRenderView(reflectionViews[i]);
            }

            scene.AddRenderView(planarReflection);
        }