Compare commits

..

2 Commits

Author SHA1 Message Date
c5bab7019c Modificado el tamaño de la textura 2024-09-03 19:48:30 +02:00
b3d9b72d1d Corregido el tamaño de la textura y de la ventana 2024-09-03 19:47:57 +02:00
2 changed files with 5 additions and 4 deletions

View File

@@ -97,7 +97,8 @@ void main()
#if defined(CURVATURE)
screenScale = vec2(1.0, 1.0); //TextureSize / InputSize;
#endif
filterWidth = (768.0 / 240.0) / 3.0;
//filterWidth = (768.0 / 240.0) / 3.0;
filterWidth = (768.0 / 256.0) / 3.0;
TEX0 = vec2(gl_MultiTexCoord0.x, 1.0-gl_MultiTexCoord0.y)*1.0001;
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}
@@ -146,7 +147,7 @@ float CalcScanLine(float dy)
void main()
{
vec2 TextureSize = vec2(320.0, 240.0);
vec2 TextureSize = vec2(320.0, 256.0);
#if defined(CURVATURE)
vec2 texcoord = Distort(TEX0);
if (texcoord.x < 0.0)

View File

@@ -23,8 +23,8 @@ namespace shader
SDL_Renderer *renderer = nullptr;
GLuint programId = 0;
SDL_Texture* backBuffer = nullptr;
SDL_Point win_size = {640, 480};
SDL_Point tex_size = {320, 240};
SDL_Point win_size = {320*4, 256*4};
SDL_Point tex_size = {320, 256};
bool usingOpenGL;
#ifndef __APPLE__