
This is primarily done to lower the GTK version dependency below GTK 3.22, since GTK 3.22 is unlikely to be widely availale any time soon.
13 lines
379 B
GLSL
13 lines
379 B
GLSL
//-----------------------------------------------------------------------------
|
|
// Mesh rendering shader
|
|
//
|
|
// Copyright 2016 Aleksey Egorov
|
|
//-----------------------------------------------------------------------------
|
|
uniform vec4 color;
|
|
uniform sampler2D texture;
|
|
|
|
void main() {
|
|
if(texture2D(texture, gl_FragCoord.xy / 32.0).a < 0.5) discard;
|
|
gl_FragColor = color;
|
|
}
|