Exemple #1
0
 public SceneGraphRoot(SceneResources sceneResources)
 {
     mRenderContext  = new RenderContext(sceneResources);
     mDynamicRoot    = new SceneNode();
     mStaticTreeRoot = null;
     mSkyboxRoot     = new SceneNode();
     mTraversalData  = new TraversalContext();
 }
 public SceneGraphRoot(SceneResources sceneResources)
 {
     mRenderContext = new RenderContext(sceneResources);
     mDynamicRoot = new SceneNode();
     mStaticTreeRoot = null;
     mSkyboxRoot = new SceneNode();
     mTraversalData = new TraversalContext();
 }
Exemple #3
0
 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;
 }
Exemple #4
0
 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;
 }
Exemple #5
0
 public RenderContext(SceneResources sceneResources)
 {
     SceneResources = sceneResources;
     VisibilityFrustum = null;
     EyePosition = Vector3.Zero;
 }
Exemple #6
0
 public RenderContext(SceneResources sceneResources)
 {
     SceneResources    = sceneResources;
     VisibilityFrustum = null;
     EyePosition       = Vector3.Zero;
 }