mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
Former-commit-id: f91181caee4dabf4cb2e51d8077441c6b0f83757 Former-commit-id: 8b450303698c5c85dea9145a056b290b95a6a7b0
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);
|
|
} |