RetroArch-Wii-U-Slang-Shaders/3dfx/shaders/3dfx_pass_2.vert
2020-04-26 18:03:54 -05:00

70 lines
602 B
GLSL

#version 150
#define float2 vec2
#define float3 vec3
#define float4 vec4
uniform Push
{
vec4 SourceSize;
vec4 OriginalSize;
vec4 OutputSize;
uint FrameCount;
float GAMMA_LEVEL;
}params;
#pragma parameterGAMMA_LEVEL¡1.30.002.000.01
layout(std140) uniform UBO
{
mat4 MVP;
}global;
float mod2(float x, float y)
{
return x - y * floor(x / y);
}
layout(location = 0) in vec4 Position;
layout(location = 1) in vec2 TexCoord;
layout(location = 0) out vec2 vTexCoord;
void main()
{
gl_Position = global . MVP * Position;
vTexCoord = TexCoord;
}