Formalize editor skybox wiring and debug presets
This commit is contained in:
@@ -471,7 +471,9 @@ void SceneManager::CreateDemoScene() {
|
||||
ClearSceneLoadProgress();
|
||||
|
||||
::XCEngine::Components::GameObject* camera = CreateEntity("Main Camera", nullptr);
|
||||
camera->AddComponent<::XCEngine::Components::CameraComponent>();
|
||||
if (auto* cameraComponent = camera->AddComponent<::XCEngine::Components::CameraComponent>()) {
|
||||
cameraComponent->SetSkyboxEnabled(true);
|
||||
}
|
||||
|
||||
::XCEngine::Components::GameObject* light = CreateEntity("Directional Light", nullptr);
|
||||
light->AddComponent<::XCEngine::Components::LightComponent>();
|
||||
|
||||
Reference in New Issue
Block a user