Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hello, firstly good job on this shader, it looks brilliant.  Quick question, my game support window / screen resizing.  When I resize the screen from a different aspect ratio the shader doesn't look great (I get banding or stripes).  Can you suggest a way around that so the shader renders properly.  Thanks.

Hi, thanks for using my asset! If you want to be able to resize your game window, you’ll need to resize the GUI surface; GameMaker doesn’t do this for you except at the start of the game. In either a step event or the resize event, you’ll just need to check if the window dimensions are different from the GUI surface size, and if so, call display_set_gui_size(), and grab the window dimensions with window_get_width() and window_get_height().