ITR2_ASSET/Engine/Shaders/StandaloneRenderer/OpenGL/SplashVertexShader.glsl

12 lines
247 B
Text
Raw Permalink Normal View History

2024-11-19 21:27:19 +00:00
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);
}