Пример #1
0
        private static void PrepareGameScene()
        {
            ProfilerShort.Begin("PrepareGameScene");

            ProfilerShort.Begin("Stats");
            ResetStats();

            ProfilerShort.BeginNextBlock("GBuffer clear");
            MyGBuffer.Main.Clear();

            ProfilerShort.BeginNextBlock("Constants");
            MySceneMaterials.PreFrame();
            MyCommon.UpdateFrameConstants();
            ProfilerShort.End();

            ProfilerShort.End();
        }
Пример #2
0
        private static void PrepareGameScene()
        {
            ProfilerShort.Begin("PrepareGameScene");

            ProfilerShort.Begin("Stats");
            ResetStats();

            ProfilerShort.BeginNextBlock("GBuffer clear");
            MyGBuffer.Main.Clear(VRageMath.Color.Black);
            //TODO: Find out why clearing to White affects result image
            //MyGBuffer.Main.Clear(MyEnvironment.BackgroundColor);

            ProfilerShort.BeginNextBlock("Constants");
            MySceneMaterials.PreFrame();
            MyCommon.UpdateFrameConstants();
            ProfilerShort.End();

            ProfilerShort.End();
        }
Пример #3
0
 internal static void PrepareFrame()
 {
     MyGBuffer.Main.Clear();
     MySceneMaterials.PreFrame();
 }