gdritter repos utmyen / d05949e
Implemented limited nearest-neighbor in GLSL Getty Ritter 7 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Collapse all Expand all
1111 void main() {
1212 float brightness = dot(normalize(o_nrm), normalize(u_light));
1313 float factor = 0.5 + (brightness * 0.5);
14 color = texture(tex, o_tex) * factor;
14 vec2 near_tex = (floor(o_tex * 32.0) + 0.5) / 32.0;
15 color = texture(tex, near_tex) * factor;
1516 }