Allow camera render target to be null

This commit is contained in:
2023-05-10 07:43:02 -07:00
parent fb53330105
commit d643d5f220
5 changed files with 17 additions and 9 deletions

View File

@ -13,6 +13,7 @@ namespace Dawn {
class HelloWorldScene : public Scene {
protected:
Camera *camera;
Camera *camNew;
UICanvas *canvas;
Texture text;
@ -25,6 +26,10 @@ namespace Dawn {
camera->fov = 0.436332f;
camera->transform->lookAt(glm::vec3(10, 10, 10), glm::vec3(0, 0, 0));
camNew = Camera::create(this);
camNew->transform->lookAt(glm::vec3(10, 10, 10), glm::vec3(0, 0, 0));
camNew->renderTarget = nullptr;
auto cube = SimpleSpinningCubePrefab::create(this);
auto textbox = VNTextbox::create(this);