diff --git a/src/dawn/scene/components/ui/UIImage.cpp b/src/dawn/scene/components/ui/UIImage.cpp index fb582f64..a4d70a9d 100644 --- a/src/dawn/scene/components/ui/UIImage.cpp +++ b/src/dawn/scene/components/ui/UIImage.cpp @@ -59,8 +59,8 @@ void UIImage::onStart() { }, this->eventAlignmentUpdated); QuadMesh::initQuadMesh(&mesh, - glm::vec2(0, 0), glm::vec2(0, 0), - glm::vec2(width, height), glm::vec2(1, 1), + glm::vec2(0, 0), glm::vec2(0, 1), + glm::vec2(width, height), glm::vec2(1, 0), 0.0f ); } \ No newline at end of file diff --git a/src/dawnliminal/scenes/HelloWorldScene.hpp b/src/dawnliminal/scenes/HelloWorldScene.hpp index c15cd59f..4683712b 100644 --- a/src/dawnliminal/scenes/HelloWorldScene.hpp +++ b/src/dawnliminal/scenes/HelloWorldScene.hpp @@ -26,13 +26,14 @@ namespace Dawn { canvas = UICanvas::create(this); camera = Camera::create(this); - camera->fov = 0.436332f; - camera->transform->lookAt(glm::vec3(900, 900, 900), glm::vec3(800, 800, 800)); + glm::vec3 off = glm::vec3(90000, 100, 100); + camera->transform->lookAt(glm::vec3(10, 10, 10) + off, glm::vec3(0, 0, 0) + off); camNew = Camera::create(this); auto camTexture = camNew->item->addComponent(); + camNew->fov = 0.436332f; camNew->transform->lookAt(glm::vec3(10, 10, 10), glm::vec3(0, 0, 0)); - camTexture->renderTarget.setSize(256, 256); + camTexture->renderTarget.setSize(1024, 1024); auto cube = SimpleSpinningCubePrefab::create(this);