solvespace/res/shaders/imesh_tex.frag

14 lines
372 B
GLSL

//-----------------------------------------------------------------------------
// Indexed Mesh rendering shader
//
// Copyright 2016 Aleksey Egorov
//-----------------------------------------------------------------------------
uniform vec4 color;
uniform sampler2D texture;
varying vec2 fragTex;
void main() {
gl_FragColor = texture2D(texture, fragTex) * color;
}