2016-06-30 15:54:35 +00:00
|
|
|
//-----------------------------------------------------------------------------
|
2017-01-13 23:00:38 +00:00
|
|
|
// Mesh rendering shader
|
2016-06-30 15:54:35 +00:00
|
|
|
//
|
|
|
|
// Copyright 2016 Aleksey Egorov
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
uniform vec4 color;
|
|
|
|
uniform sampler2D texture;
|
|
|
|
|
|
|
|
void main() {
|
2017-01-14 06:10:23 +00:00
|
|
|
if(texture2D(texture, gl_FragCoord.xy / 32.0).TEX_ALPHA < 0.5) discard;
|
2016-06-30 15:54:35 +00:00
|
|
|
gl_FragColor = color;
|
|
|
|
}
|