mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
20 lines
445 B
Plaintext
20 lines
445 B
Plaintext
|
#extension GL_ARB_texture_rectangle : enable
|
||
|
|
||
|
uniform sampler2DRect u_texture2DRect;
|
||
|
|
||
|
//--------------------------------------------------------------------------------------------------
|
||
|
///
|
||
|
//--------------------------------------------------------------------------------------------------
|
||
|
void main()
|
||
|
{
|
||
|
vec4 t = texture2DRect(u_texture2DRect, gl_FragCoord.xy);
|
||
|
if (t.a > 0.0)
|
||
|
{
|
||
|
gl_FragColor = t;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
discard;
|
||
|
}
|
||
|
}
|