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() {
|
2017-01-14 06:10:23 +00:00
|
|
|
gl_FragColor = vec4(color.rgb, color.a * texture2D(texture, fragTex).TEX_ALPHA);
|
2016-06-30 15:54:35 +00:00
|
|
|
}
|