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(); }
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(); }
internal static void PrepareFrame() { MyGBuffer.Main.Clear(); MySceneMaterials.PreFrame(); }