public SceneGraphRoot(SceneResources sceneResources) { mRenderContext = new RenderContext(sceneResources); mDynamicRoot = new SceneNode(); mStaticTreeRoot = null; mSkyboxRoot = new SceneNode(); mTraversalData = new TraversalContext(); }
public Scene() { Resources = new SceneResources(); mContentLoader = new ContentManager(SharedResources.Game.Services, "Content"); SceneGraph = new SceneGraphRoot(Resources); RenderComponent.RenderComponentInitialized += RenderComponentInitializedHandler; SkyboxRenderComponent.EnvironmentMapAdded += EnvironmentMapAddedHandler; ShadowCasterComponent.ShadowCasterCreated += ShadowCasterCreatedHandler; FogComponent.FogCreated += FogCreatedHandler; HDRLightComponent.HDRLightCreated += HDRLightCreatedHandler; }
public RenderContext(SceneResources sceneResources) { SceneResources = sceneResources; VisibilityFrustum = null; EyePosition = Vector3.Zero; }