| 1234567891011121314151617181920212223242526272829303132 |
- /*
- * Copyright (C) 2020, Inria
- * GRAPHDECO research group, https://team.inria.fr/graphdeco
- * All rights reserved.
- *
- * This software is free for non-commercial, research and evaluation use
- * under the terms of the LICENSE.md file.
- *
- * For inquiries contact sibr@inria.fr and/or George.Drettakis@inria.fr
- */
- #version 420
- #define VERTICAL_FLIP (0)
- layout(location = 0) in vec2 in_vertex;
- layout(location = 1) in vec2 in_texcoord;
- out vec2 tex_coord;
- void main(void) {
- gl_Position = vec4(in_vertex, 0.0, 1.0);
- tex_coord.x = in_texcoord.x;
- if (VERTICAL_FLIP==1) {
- tex_coord.y = 1.0 - in_texcoord.y;
- }
- else {
- tex_coord.y = in_texcoord.y;
- }
- }
|