예제 #1
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;
 }
예제 #2
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;
 }