color-vert-params.glsl 762 B

1234567891011121314151617181920212223
  1. #if defined(dColorType_uniform)
  2. uniform vec3 uColor;
  3. #elif defined(dColorType_attribute)
  4. varying vec4 vColor;
  5. attribute vec3 aColor;
  6. #elif defined(dColorType_instance) || defined(dColorType_group) || defined(dColorType_groupInstance)
  7. varying vec4 vColor;
  8. uniform vec2 uColorTexDim;
  9. uniform sampler2D tColor;
  10. #elif defined(dColorType_objectPicking) || defined(dColorType_instancePicking) || defined(dColorType_groupPicking)
  11. #if __VERSION__ != 300
  12. varying vec4 vColor;
  13. #else
  14. flat out vec4 vColor;
  15. #endif
  16. #pragma glslify: encodeFloatRGB = require(../utils/encode-float-rgb.glsl)
  17. #endif
  18. #ifdef dOverpaint
  19. varying vec4 vOverpaint;
  20. uniform vec2 uOverpaintTexDim;
  21. uniform sampler2D tOverpaint;
  22. #endif