Exemple #1
0
        // Sorts scene node into correct list.
        protected void AddNode(SceneNode node)
        {
            if (node is DecalNode)
            {
                DecalNodes.Add(node);
            }
            else if (node is LightNode)
            {
                Lights.Add(node);
            }
            else if (node is LensFlareNode)
            {
                LensFlareNodes.Add(node);
            }
            else if (node is SkyNode)
            {
                SkyNodes.Add(node);
            }
            else if (node is FogNode)
            {
                FogNodes.Add(node);
            }
            else if (node.IsRenderable)
            {
                RenderableNodes.Add(node);
            }

            // Unsupported types are simply ignored.
        }
Exemple #2
0
        public void Reset()
        {
            ReferenceNode = null;

            DecalNodes.Clear();
            Lights.Clear();
            LensFlareNodes.Clear();
            SkyNodes.Clear();
            FogNodes.Clear();
            RenderableNodes.Clear();
        }