Last active
December 18, 2015 00:59
-
-
Save sdabet/5700411 to your computer and use it in GitHub Desktop.
cocos2d shader modified for Apportable
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
" \n\ | |
#ifdef GL_ES \n\ | |
varying mediump vec4 v_color; \n\ | |
varying mediump vec2 v_texcoord; \n\ | |
#else \n\ | |
varying vec4 v_color; \n\ | |
varying vec2 v_texcoord; \n\ | |
#endif \n\ | |
\n\ | |
void main() \n\ | |
{ \n\ | |
gl_FragColor = v_color*step(0.0, 1.0 - length(v_texcoord)); \n\ | |
} \n\ | |
"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment