Пример #1
0
        protected override void Draw(Microsoft.Xna.Framework.Matrix worldTransform, Microsoft.Xna.Framework.Color overlayColor, float overlayColorWeight, bool tryCull)
        {
            var parameters = new ModelRenderer.ModelParameters();
            parameters.Name = Name;
            parameters.ObjectID = ObjectID;
            parameters.OverlayColor = overlayColor;
            parameters.OverlayWeight = overlayColorWeight;
            parameters.TryCull = tryCull;
            parameters.World = worldTransform;

            GraphicsManager.EnqueueRenderable(parameters, RendererType);
        }
Пример #2
0
        protected override void Draw(Matrix worldTransform, Color overlayColor, float overlayColorWeight, bool tryCull)
        {
            if (Name == "rock1dark_collision")
            {
                overlayColor = Color.Beige;
                overlayColorWeight = 1.0f;
            }

            ModelRenderer.ModelParameters parameters = new ModelRenderer.ModelParameters();
            parameters.BoundingBox = BoundingBox;
            parameters.Spaghettify = mSpaghettify;
            parameters.MaxWormholeDistance = mMaxWormholeDistance;
            parameters.Name = Name;
            parameters.ObjectID = ObjectID;
            parameters.OverlayColor = overlayColor;
            parameters.OverlayWeight = overlayColorWeight;
            parameters.TryCull = tryCull;
            parameters.World = worldTransform;
            parameters.WormholePosition = mWormholePosition;

            GraphicsManager.EnqueueRenderable(parameters, RendererType);
        }