fragment.glsl 218 B

123456789
  1. uniform float uBlendTime;
  2. uniform vec3 uPotionColor;
  3. uniform vec3 uNextPotionColor;
  4. uniform float uTransparency;
  5. void main()
  6. {
  7. gl_FragColor = vec4(mix(uPotionColor, uNextPotionColor, uBlendTime), uTransparency);
  8. }