-
-
Notifications
You must be signed in to change notification settings - Fork 36
Can't render models to canvas
groverburger edited this page Jan 16, 2021
·
4 revisions
The first time you try to render models to a canvas, it most likely won't work.
Instead of using love.graphics.setCanvas(yourCanvasHere)
, use love.graphics.setCanvas({yourCanvasHere, depth=true})
.
This depth=true
setting allows 3D models to be rendered on the canvas.
Most of the time when working with canvases, you want to clear your canvas after it's set. If you are still having problems, try doing love.graphics.clear(0,0,0,0)
after setting your canvas to be active.
The depth=true
setting was added in Love 11.0, and is documented at the bottom of this page.