Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17560

Can I change the texture size in Opengl ?

$
0
0

I want to display 2 textures on 2 squares. Here's what it looks like.

left side 325x325 ( the same size as the image ), right side (100x100)

the image size is 325x325. How to make the texture of the right side more sharp.the only way to get good quality is when I use textures and objects with the same size.I'm using PNG images and the following GL methods.
My vertex

#version 430 core
layout(location = 0) in vec2 position;
layout(location = 1) in vec2 texCoord;
layout(location = 2) in float layer;
out vec2 uv;
out float layer_get …

Viewing all articles
Browse latest Browse all 17560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>