LWJGL Forum

Programming => OpenGL => Topic started by: Aisaaax on March 09, 2021, 10:10:00

Title: Mapping texture over half of the quad.
Post by: Aisaaax on March 09, 2021, 10:10:00
Hello!
I'm trying to create a simple overlay that is basically just a fullscrean quad that occupies the entire screen space.
I want to map some textures on it.

Now, can I map a texture over only some part of the quad, leaving the rest of the quad unrendered?

I know how to TILE a texture several times over a surface. But can I set it up so that instead of repeating it - it just draws nothing in that space?
Or the only way to do this would only be to create smaller mesh / or subdivide mesh into smaller quads?