Slide 44
Slide 44 text
Copyright © 2015 Wright Flyer Studios, Inc. All Right Reserved.
パフォーマンス関連
float texVal =
texture2D(CC_Texture0, v_texCoord).a;
float intensity =
texVal > 0.5 ? texVal * 2.0 - 1.0 : 0.0;
vec4 color =
vec4(intensity, intensity, intensity,
texVal > 0.5 ? 1.0 : texVal * 2.0);
gl_FragColor = v_fragmentColor * color;