Sha256: 7501b0d3b03a57143a1391bc34861e855da7366d2e94a94c36f3bc02f25e716a

Contents?: true

Size: 747 Bytes

Versions: 3

Compression:

Stored size: 747 Bytes

Contents

"															\n\
#ifdef GL_ES												\n\
precision lowp float;										\n\
#endif														\n\
															\n\
varying vec4 v_fragmentColor;								\n\
varying vec2 v_texCoord;									\n\
uniform sampler2D u_texture;								\n\
uniform		float u_alpha_value;							\n\
															\n\
void main()													\n\
{															\n\
	vec4 texColor = texture2D(u_texture, v_texCoord);		\n\
															\n\
	// mimic: glAlphaFunc(GL_GREATER)						\n\
	// pass if ( incoming_pixel >= u_alpha_value ) => fail if incoming_pixel < u_alpha_value		\n\
															\n\
	if ( texColor.a <= u_alpha_value )						\n\
		discard;											\n\
															\n\
	gl_FragColor = texColor * v_fragmentColor;				\n\
}															\n\
";

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
joybox-0.0.5 vendor/Cocos2D/include/ccShader_PositionTextureColorAlphaTest_frag.h
joybox-0.0.4 vendor/Cocos2D/include/ccShader_PositionTextureColorAlphaTest_frag.h
joybox-0.0.3 vendor/Cocos2D/include/ccShader_PositionTextureColorAlphaTest_frag.h