Bunch of changes + fixes

This commit is contained in:
2026-09-26 01:49:45 -07:00
parent e05926ad74
commit b24945ec9d
9 changed files with 40 additions and 19 deletions
+1 -3
View File
@@ -40,8 +40,7 @@ class ImageViewer : public sophia::Application {
sophia::SceneHandle sceneHandle = scenes().create();
sophia::Scene& scene = scenes().get(sceneHandle);
camera = scene.createEntity("Camera");
camera.addComponent<sophia::CameraComponent>();
camera = scene.createCamera();
sophia::TextureHandle texture = resources().load<sophia::Texture>(path);
imageSize = resources().getExtent(texture);
@@ -54,7 +53,6 @@ class ImageViewer : public sophia::Application {
target = resources().create<sophia::RenderTarget>();
views().create({.scene = sceneHandle,
.target = target,
.camera = camera,
.clearColor = {0.1f, 0.1f, 0.15f, 1.f}});
panels().emplace<ViewportPanel>(ui(), target);