Esempio n. 1
0
        static MyDistantImpostors()
        {
            MyRender.Log.WriteLine("MyDistantImpostors()");

            const float defaultSize = 200000;

            m_objectImpostors       = new MyDistantObjectImpostors();
            m_objectImpostors.Scale = MySectorConstants.SECTOR_SIZE / defaultSize;

            m_voxelImpostors = new MyVoxelMapImpostors();

            MyRender.RegisterRenderModule(MyRenderModuleEnum.DistantImpostors, "Distant impostors", PrepareForDraw, MyRenderStage.PrepareForDraw);
            MyRender.RegisterRenderModule(MyRenderModuleEnum.DistantImpostors, "Distant impostors", Draw, MyRenderStage.Background);
        }
        static MyDistantImpostors()
        {
            MyRender.Log.WriteLine("MyDistantImpostors()");

            const float defaultSize = 200000;

            m_objectImpostors = new MyDistantObjectImpostors();
            m_objectImpostors.Scale = MySectorConstants.SECTOR_SIZE / defaultSize;

            m_voxelImpostors = new MyVoxelMapImpostors();

            MyRender.RegisterRenderModule(MyRenderModuleEnum.DistantImpostors, "Distant impostors", PrepareForDraw, MyRenderStage.PrepareForDraw);
            MyRender.RegisterRenderModule(MyRenderModuleEnum.DistantImpostors, "Distant impostors", Draw, MyRenderStage.Background);
        }