So, for my game, which tries to imitate a kind of retro style, i changed some settings in the window configuration of godot. Problem is, that there’s this annoying black borderline around the screen that actually annoys me a bit. Is there a way to get rid of that?
I tried things like adding a filter so the screen looked a bit more pixelated, problem is that my game uses two cameras (one for the player and one for the guns and other itens), so if i apply the filter on one of the cameras, the other one will not be pixelated, and if i add the filter on both cameras, i can’t see nothing.
This is my player scene
And the way I do shaders is inside the CanvasLayer called “Shaders”
I put this layer above my HUD and UI in scene tree so it doesn’t affect them
Hi! so, i tried what you told me, but i’m certainly doing something wrong or missing some steps…
Look, after i tried doing the shaders with a CanvasLayer, only thing i actually get in return is just some big rectangle infront of my screen. If i just make the ColorRect color’s transparent, it just becomes transparent but the filter is not applied neither can i move the player’s head around…
On the left there’s the player’s structure, the Shaders can be seen down there, above the UI as you recommended. I use my own shader, that can be seen on the bottom right corner and in the bottom middle as well, and the white rectangle that i mentioned which cover the entire screen
The problem is your shader code.
You’re using shader_type spatial, which is used for meshes.
For UI shaders you need to use shader_type canvas_item.
Which may also require some changes to the shader code. (I suggest trying out the pixelization shader code i sent you)
The cause of this problem could be that your mouse filter setting on the UI node is set to “Stop”
Setting this setting to “Ignore” makes it so the UI node doesn’t interact with the mouse.
Well, now i think i’m getting kinda the hand on this, but still there’s this problem where i can’t really see anything, besides the UI for the Ammo because i’ve put the Shaders above the UI node…
Also if you saw, i’m using your code now, because i think mine is now giving an error that i’m yet to solve, so to put things faster, i’m using yours just so i can test and see things better for now
Hey! Sorry for the late answer, but i’ve tried what you said, and nothing worked…for now. I’m kinda busy getting on with finishing my shooting and weapons mechanic, so i didn’t dove deep into the shaders part of the thing.
If i need to come back again into the shaders part, i will certainly do another topic on this. But for now i’m gonna stick to the shooting.
Thanks for all your help, i actually do appreciate it a lot, and i hope i can meet you again