Hi! New to Defold and having a bit of a hard time understanding how the camera works. I’m making a game that’s 320x180 and then scaled up 4x to support 1280x720 resolution. I was able to set up my orthographic camera to scale the content at 4x zoom but it seems to have no effect on the GUI.
Here’s a screenshot of my camera at 1x and you’ll notice that the GUI isn’t affected at all.
I got an advice from britzl (at Discord) to modify this piece of code to set the GUI camera view but still no idea how?
local camera_gui = state.cameras.camera_gui
render.set_view(camera_gui.view)
render.set_projection(camera_gui.proj)
render.enable_state(render.STATE_STENCIL_TEST)
render.draw(predicates.gui, camera_gui.frustum)
render.draw(predicates.text, camera_gui.frustum)
render.disable_state(render.STATE_STENCIL_TEST)
render.disable_state(render.STATE_BLEND)
Hope you can help out a fellow dev. Thank you!