Cubyz/assets/cubyz/shaders/fake_reflection.vs
IntegratedQuantum 9898db654b Specify the location of all shader in/out parameters.
also normalized the version and layout formatting
progress towards #1376
2025-05-02 14:53:57 +02:00

13 lines
292 B
GLSL

#version 460
layout(location = 0) in vec2 inTexCoords;
layout(location = 0) out vec3 coords;
uniform float reflectionMapSize;
void main() {
coords = vec3((inTexCoords*2 - vec2(1, 1))*(reflectionMapSize + 1)/reflectionMapSize, 1);
gl_Position = vec4(inTexCoords*2 - vec2(1, 1), 0, 1);
}