mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 12:21:52 +09:00
Former-commit-id: 9340873f9cfb15264004c32d6e4b8f8bd6828d94 Former-commit-id: 1916747c109876aa064412e01204c3aeda9bbbc0
7 lines
205 B
Plaintext
7 lines
205 B
Plaintext
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);
|
|
} |