/*---------------------------------------------------------------------------* Copyright 2010-2011 Nintendo. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. *---------------------------------------------------------------------------*/ uniform sampler2D u_CharTex; uniform vec4 u_Color; varying vec2 v_TexCoord; void main() { vec4 texColor = texture2D(u_CharTex, v_TexCoord.xy); texColor.a = smoothstep(0.0, 1.0, texColor.r); texColor.rgb = vec3(1.0, 1.0, 1.0); gl_FragColor = u_Color * texColor; }