I'm trying to get caught up on shaders really fast, so there's a lot I don't really understand yet. I'm mixing together a few tutorials to get the result I want, which is basically a full screen gaussian blur on all of my text and objects.
I'm using a tutorial shader that works fine in the tutorial when applied to a specific background sprite.
I have an obj_shader with this in the create event:
I then have a post-draw event with this:
This achieves the aesthetic effect I'm after, but I can no longer click on the objects in the game, which I can do if I remove obj_shader from the room.
Can anyone explain how I can implement this shader without interfering with interactivity?
I'm using a tutorial shader that works fine in the tutorial when applied to a specific background sprite.
I have an obj_shader with this in the create event:
Code:
application_surface_draw_enable(false);
usize = shader_get_uniform(shader,"size");//uniform for width, height, radius
Code:
shader_set(shader)
shader_set_uniform_f(usize,room_width,room_height,8)//width,height,radius
draw_surface(application_surface,0,0)
shader_reset()
Can anyone explain how I can implement this shader without interfering with interactivity?