T
Tankwars
Guest
I'm still learning the ropes of GMS:2, so I apologise if these questions sound a little stupid.
First question, is it possible to draw specific layers of any type to a surface? Reason i'm asking is because I want to try to add multiple shader effects to some layers, but not others. In GMS:1, I had to draw sprites to one surface to apply an effect, then feed that surface into a new surface to apply another effect, before finally drawing the last surface in the chain. I know that in GMS:1, you could only have one shader set at a specific time, and it seems to work the same way in GMS:2. I am aware of the layer_shader() function, but you can only have one active for each layer it seems. Combining two shader effects into one wouldn't really help, because sometimes you need a bit more flexibility over how an effect behaves.
Second question, will there be any further functionality for external asset management? I've read from others in the past that loading external sprites puts them on their own texture page. Wasn't that something to be avoided because of the numerous texture swaps? Will we get functions to add external sprites, and put them in a specific texture group/page? I think it would be pretty sweet to have this because you could unload art assets you don't need from memory, but you when you do need them, they could go in a shared texture group/page of your choosing to reduce texture swaps. I believe it also helps with exe file size? I could be wrong.
Feedback appreciated.
First question, is it possible to draw specific layers of any type to a surface? Reason i'm asking is because I want to try to add multiple shader effects to some layers, but not others. In GMS:1, I had to draw sprites to one surface to apply an effect, then feed that surface into a new surface to apply another effect, before finally drawing the last surface in the chain. I know that in GMS:1, you could only have one shader set at a specific time, and it seems to work the same way in GMS:2. I am aware of the layer_shader() function, but you can only have one active for each layer it seems. Combining two shader effects into one wouldn't really help, because sometimes you need a bit more flexibility over how an effect behaves.
Second question, will there be any further functionality for external asset management? I've read from others in the past that loading external sprites puts them on their own texture page. Wasn't that something to be avoided because of the numerous texture swaps? Will we get functions to add external sprites, and put them in a specific texture group/page? I think it would be pretty sweet to have this because you could unload art assets you don't need from memory, but you when you do need them, they could go in a shared texture group/page of your choosing to reduce texture swaps. I believe it also helps with exe file size? I could be wrong.
Feedback appreciated.
Last edited by a moderator: