Skip to content

Instantly share code, notes, and snippets.

View marklundin's full-sized avatar
🐳

Mark Lundin marklundin

🐳
View GitHub Profile
@marklundin
marklundin / original
Last active May 3, 2016 16:04 — forked from Samsy/branch one
Branching
varying vec2 vUv;
uniform sampler2D tDiffuse;
uniform float isPicking;
void main() {
vec3 color = texture2D(tDiffuse, vUv).rgb;
gl_FragColor = vec4( mix( color, pickingColor, isPicking ), 1.0);