ObjToSchematic/shaders/texture_tri_fragment.fs
2022-02-12 01:54:31 +00:00

14 lines
276 B
GLSL

precision mediump float;
uniform sampler2D u_texture;
varying float v_lighting;
varying vec2 v_texcoord;
void main() {
vec2 tex = vec2(v_texcoord.x, 1.0 - v_texcoord.y);
vec3 diffuse = texture2D(u_texture, tex).rgb;
gl_FragColor = vec4(diffuse * v_lighting, 1.0);
}