mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 12:40:19 +00:00
RTDXT compress finally runs with MESA GL. Decompress unfortunately still requires GL_EXT_texture_compression_s3tc which is not present by default.
26 lines
362 B
GLSL
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
|