I am trying out a feature for my 2D game where the users are shown a screenshot of their playthrough after the level is finished or on the game over screen.
I am capturing the texture from the viewport with..
However, I am struggling to understand how I would go about adding a logo to the texture.
How would I go about doing this?
FYI the function that is taking the screenshot:
# Wait until the frame has finished before getting the texture.
# Retrieve the captured image.
img = get_viewport().get_texture().get_data()
# Flip it on the y-axis (because it's flipped).
captured = true