Skip to content

Instantly share code, notes, and snippets.

@Arthuralk
Arthuralk / Matcap.glsl
Last active May 15, 2019 02:41
MatCap for Godot, looks like blender matcap
//MatCap to Godot By ArthurAlk, Copy and Paste it in Fragment
//This shader looks like blender matcap
//Matcap texture
uniform texture MatCap;
//here the magic happens
vec2 vN = NORMAL.xy/2+vec2(0.5,0.5);
vN.y = vN.y*(-1)+1;