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
|
|
|
|
|
|
|
varying vec2 fragTex;
|
|
|
|
|
|
|
|
void main() {
|
2019-05-23 10:58:31 +00:00
|
|
|
gl_FragColor = vec4(color.rgb, color.a * texture2D(texture_, fragTex).TEX_ALPHA);
|
2016-06-30 15:54:35 +00:00
|
|
|
}
|