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;
|
|
|
|
uniform sampler2D texture;
|
|
|
|
|
|
|
|
varying vec2 fragTex;
|
|
|
|
|
|
|
|
void main() {
|
2018-07-28 12:33:32 +00:00
|
|
|
vec4 texColor = texture2D(texture, fragTex);
|
|
|
|
if(texColor.a == 0.0) discard;
|
|
|
|
gl_FragColor = texColor * color;
|
2016-06-30 15:54:35 +00:00
|
|
|
}
|