frozen_shader.fsh 325 B

123456789101112131415
  1. #ifdef GL_ES
  2. precision lowp float;
  3. #endif
  4. varying vec4 v_fragmentColor;
  5. varying vec2 v_texCoord;
  6. void main()
  7. {
  8. vec4 col = texture2D(CC_Texture0, v_texCoord);
  9. vec4 normalColor = v_fragmentColor * col;
  10. normalColor *= vec4(0.5, 0.5, 0.5, 1);
  11. normalColor.b += normalColor.a * 0.3;
  12. gl_FragColor = normalColor;
  13. }