Files
2025-05-24 18:09:39 -03:00

22 lines
479 B
GLSL

/***********************************
* exoPostBaseV.glsl
* Provides screen coordinates for post processing effects.
* This is basically a more minimal reimplementation of postDeferredV.glsl.
* Copyright Geenz Spad, 2012
***********************************/
in vec3 position;
in vec2 texcoord0;
out vec2 vary_fragcoord;
uniform vec2 screen_res;
void main()
{
vec4 pos = vec4(position.xyz, 1.0);
gl_Position = pos;
vary_fragcoord.xy = (pos.xy * 0.5 + 0.5);
}