You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 rivejä
514 B

  1. uniform sampler2D uTexture0;
  2. uniform sampler2D uTexture1;
  3. uniform vec4 uColor;
  4. vec2 Base2_TestProc(vec2 aVec)
  5. {
  6. return aVec + vec2(1.0);
  7. }
  8. vec2 SimpleClass_TestProc(vec2 aVec)
  9. {
  10. vec2 v = aVec;
  11. vec2 tmp = (vec2(0.0));
  12. tmp += vec2(1.0);
  13. v = (tmp);
  14. v = Base2_TestProc(v);
  15. return v;
  16. }
  17. void main(void)
  18. {
  19. vec2 texCoord = SimpleClass_TestProc(gl_TexCoord[0]);
  20. gl_FragColor =
  21. texture2D(uTexture0, texCoord) *
  22. texture2D(uTexture1, texCoord) *
  23. uColor;
  24. }