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

21 lines
430 B
Text
Raw Permalink Normal View History

2024-11-19 21:27:19 +00:00
#if PLATFORM_USES_GLES
precision highp float;
#else
// #version 120 at the beginning is added in FSlateOpenGLShader::CompileShader()
#extension GL_EXT_gpu_shader4 : enable
#endif
varying vec2 textureCoordinate;
uniform sampler2D SplashTexture;
void main()
{
// OpenGL has 0,0 the "math" way
vec2 tc = vec2(textureCoordinate.s, 1.0-textureCoordinate.t);
gl_FragColor = texture2D(SplashTexture, tc);
}