Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | 9BitStrider | |
Old Version | Published before Godot 3 was released. |
Is this possible? I’m interested in seeing if you could add a backdrop to the all black border around the viewport during runtime.
Not quiet clear for me what is your goal, but maybe a screen-space shader would do the job.
Dr_TwiSteD | 2017-08-15 07:34
He is talking about the black borders that show if you set your aspect ratio to be fixed, because then if the screen/window size doesn’t match, Godot creates black borders that can’t be drawn into (and I don’t know how tbh, maybe there is a hack I don’t know of :p).
This issue talks about the reverse in order to avoid borders: Implement additional stretch_aspect - crop · Issue #4492 · godotengine/godot · GitHub
Someone else tried to adress black margins too, but it wasn’t accepted. There is a discussion though Do not show black margins when stretch_aspect=keep by souryogurt · Pull Request #4134 · godotengine/godot · GitHub
Zylann | 2017-08-15 12:59
I was referring to the black void around the game window when the app is full screen. Apologies for not including specifics. But yes, I was interested to see if I could place a border around the game window. Seems like this may not be the case for now, though. Thanks for the information.
9BitStrider | 2017-08-15 14:25