ITR2_ASSET/Engine/Shaders/StandaloneRenderer/OpenGL/SplashVertexShader.glsl
2024-11-19 13:27:19 -08:00

12 lines
No EOL
247 B
GLSL

attribute vec2 InPosition;
varying vec2 textureCoordinate;
void main()
{
// We do not need texture coordinates. We calculate using position.
textureCoordinate = InPosition * 0.5 + 0.5;
gl_Position = vec4(InPosition, 0.0, 1.0);
}