mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
Former-commit-id: b5c55a2c26e8317e123349c33f444f54629afc80 Former-commit-id: ae7442f5384e91cbed11dca29e71dcebd3eecbe8
7 lines
205 B
GLSL
7 lines
205 B
GLSL
varying vec2 texcoord;
|
|
|
|
void main(void) { // fairly usual fullscreen quad setup //
|
|
vec2 corners = sign(gl_Vertex.xy);
|
|
texcoord = 0.5 * corners + vec2(0.5);
|
|
gl_Position = vec4(corners, 0.0, 1.0);
|
|
} |