コード例 #1
0
 public override void Close()
 {
     base.Close();
     ClipmapId             = uint.MaxValue;
     AtmosphereWaveLenghts = null;
     PrunningFunc          = null;
 }
コード例 #2
0
 public override void Close()
 {
     base.Close();
     ClipmapId = uint.MaxValue;
     AtmosphereWaveLenghts = null;
     PrunningFunc = null;
 }
コード例 #3
0
        internal MyClipmapHandler(uint id, MyClipmapScaleEnum scaleGroup, MatrixD worldMatrix, Vector3I sizeLod0, Vector3D massiveCenter, float massiveRadius, bool spherize, RenderFlags additionalFlags, MyClipmap.PruningFunc prunningFunc)
        {
            m_clipmapBase   = new MyClipmap(id, scaleGroup, worldMatrix, sizeLod0, this, massiveCenter, massiveRadius, prunningFunc);
            m_massiveCenter = massiveCenter;
            m_renderFlags   = additionalFlags;
            m_mergeHandler  = null;

            if (spherize)
            {
                m_massiveRadius = massiveRadius;
            }

            if (MyLodMeshMergeHandler.ShouldAllocate(m_mergeHandler))
            {
                m_mergeHandler = AllocateMergeHandler();
            }

            MyClipmap.AddToUpdate(MyRender11.Environment.Matrices.CameraPosition, Base);
        }