Files
UltraGrid/dxt_compress/display_fp.glsl
Martin Pulec 4e82ab2236 Intel graphics fixes
RTDXT compress finally runs with MESA GL. Decompress unfortunately
still requires GL_EXT_texture_compression_s3tc which is not present by
default.
2013-03-12 16:20:08 +01:00

26 lines
362 B
GLSL

#if legacy
#define TEXCOORD gl_TexCoord[0]
#else
#define TEXCOORD TEX0
#define texture2D texture
#endif
#if legacy
#define colorOut gl_FragColor
#else
out vec4 colorOut;
#endif
#if ! legacy
in vec4 TEX0;
#endif
uniform sampler2D _image;
void main()
{
vec4 _rgba;
_rgba = texture2D(_image, TEXCOORD.xy);
colorOut = _rgba;
return;
} // main end