This repository has been archived on 2023-05-27. You can view files and clone it, but cannot push or open issues or pull requests.
api8/shaders/zoom_in.vs

15 lines
288 B
Text
Raw Normal View History

2023-05-19 11:44:09 +02:00
#version 330
2023-05-19 12:09:54 +02:00
layout(location = 0) in vec3 vsiPosition;
layout(location = 2) in vec2 vsiTexCoord;
uniform float zoomAmount;
out vec2 vsoTexCoord;
2023-05-19 11:44:09 +02:00
void main(void) {
2023-05-19 12:09:54 +02:00
gl_Position = vec4(vsiPosition, 1.0);
vsoTexCoord = vec2(vsiTexCoord.s * zoomAmount, vsiTexCoord.t * zoomAmount);
2023-05-19 11:44:09 +02:00
}