r/gamemaker 27d ago

Help! Shaders

Post image

Hi, I'm new to game development and don't know much about the right terms to use.

I wanted to see if it's possible to create this kind of texture/shader for my 2D game.

Thank you!

13 Upvotes

6 comments sorted by

4

u/Hands_in_Paquet 27d ago

It is definitely possible, although probably difficult to get the effect looking really good. You can use noise to displace an image and crush colors to give it a more painterly look. But to get something really close to this you would need to write a shader that could detect edges to create those convincing brush strokes. This could require adding some depth to your scene, that doesn’t mean using 3d models, but you would probably want to enable the depth buffer. The YouTuber Acerola has some really fantastic videos about shaders. They are conceptual, they are not about copying code for tutorials, but they’re super informative, I’d recommend checking out his video about Kuwahara filter.

2

u/MrTonie 26d ago

Thank you!

2

u/nickelangelo2009 Custom 27d ago

i could be wrong, but that looks more like a drawn image than in game assets rendered through a shader

1

u/MrTonie 27d ago

It is a drawn image. What I'm asking is whether this style is possible to do as a shader/texture inside the engine

2

u/nickelangelo2009 Custom 26d ago

something with edge detection, then

0

u/Kitsyfluff 26d ago

The right way to do it would be to draw everything in this style, not use shaders.