This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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; |