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