Formalize editor skybox wiring and debug presets

This commit is contained in:
2026-04-06 03:28:20 +08:00
parent c7dc8d7484
commit 3547597bd2
12 changed files with 324 additions and 103 deletions

View File

@@ -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>();