color-vert-params.glsl.ts 839 B

123456789101112131415161718192021222324252627282930313233
  1. export const color_vert_params = `
  2. #if defined(dRenderVariant_color)
  3. #if defined(dColorType_uniform)
  4. uniform vec3 uColor;
  5. #elif defined(dColorType_attribute)
  6. varying vec4 vColor;
  7. attribute vec3 aColor;
  8. #elif defined(dColorType_texture)
  9. varying vec4 vColor;
  10. uniform vec2 uColorTexDim;
  11. uniform sampler2D tColor;
  12. #endif
  13. #ifdef dOverpaint
  14. varying vec4 vOverpaint;
  15. uniform vec2 uOverpaintTexDim;
  16. uniform sampler2D tOverpaint;
  17. #endif
  18. #elif defined(dRenderVariant_pick)
  19. #if __VERSION__ == 100
  20. varying vec4 vColor;
  21. #else
  22. flat out vec4 vColor;
  23. #endif
  24. #endif
  25. #ifdef dTransparency
  26. varying float vGroup;
  27. varying float vTransparency;
  28. uniform vec2 uTransparencyTexDim;
  29. uniform sampler2D tTransparency;
  30. #endif
  31. `;