9 Slicing in OpenGL, want to have the center of the texture repeat instead of stretch
gamedev.net
I have some sprites in my game, mostly though not entirely UI related, that I would like to be able to scale to different sizes without warping the borders of the sprite.Looking around I was able to find the following two threadshttps://gamedev.stackexchange.com/questions/153848/how-do-i-set-up-9-slicing-in-openglhttps://www.gamedev.net/forums/topic/696879-glsl-9-slicing/And from those, was able to get the following fragment shader
0 Comments ·0 Shares ·118 Views