David Lorenz
Member
Hello everyone! I've been working with Game Maker for almost 2 years now, but I've barely touched shaders and surfaces. Lately I've started playing with both and found myself stuck very often. :/
I want to use a shader only on one tile layer, but I noticed that with the layer_shader and layer_script_begin/end methods the shader is applied per tile, pretty awfully. I want the shader applied to the layer as a whole.
I thought about drawing the layer on a surface and then draw the surface with the shader, but I don't know what would be the best approach. If possible, I would prefer to avoid disabling application_surface_draw_enable and have to draw every single layer on surfaces individually as I'm using quite a lot of layers.
Thanks for any suggestion!
I want to use a shader only on one tile layer, but I noticed that with the layer_shader and layer_script_begin/end methods the shader is applied per tile, pretty awfully. I want the shader applied to the layer as a whole.
I thought about drawing the layer on a surface and then draw the surface with the shader, but I don't know what would be the best approach. If possible, I would prefer to avoid disabling application_surface_draw_enable and have to draw every single layer on surfaces individually as I'm using quite a lot of layers.
Thanks for any suggestion!