Compare commits
2 Commits
ccfd864eab
...
c5bab7019c
| Author | SHA1 | Date | |
|---|---|---|---|
| c5bab7019c | |||
| b3d9b72d1d |
@@ -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)
|
||||
|
||||
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user