Пример #1
0
        /// <summary>
        /// Checks if an object is visible and adds it to the render queue
        /// </summary>
        /// <param name="camera">Current camera</param>
        /// <param name="movable">IMovable instance</param>
        internal void ProcessesVisibleObject(Camera camera, IMovable movable)
        {
            movable.FrustumCulling(camera);

            if (movable.IsRendered)
                movable.UpdateRenderQueue(this);
        }