Bunch of changes + fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user