color-frag-params.glsl.ts 725 B

123456789101112131415161718192021222324252627282930313233343536
  1. export const color_frag_params = `
  2. uniform float uMetalness;
  3. uniform float uRoughness;
  4. #if defined(dRenderVariant_color)
  5. #if defined(dColorType_uniform)
  6. uniform vec3 uColor;
  7. #elif defined(dColorType_varying)
  8. varying vec4 vColor;
  9. #endif
  10. #ifdef dOverpaint
  11. varying vec4 vOverpaint;
  12. #endif
  13. #ifdef dSubstance
  14. varying vec3 vSubstance;
  15. #endif
  16. #elif defined(dRenderVariant_pick)
  17. #if __VERSION__ == 100
  18. varying vec4 vColor;
  19. #else
  20. flat in vec4 vColor;
  21. #endif
  22. #endif
  23. #ifdef dTransparency
  24. varying float vGroup;
  25. varying float vTransparency;
  26. #endif
  27. #ifdef dUsePalette
  28. uniform sampler2D tPalette;
  29. varying float vPaletteV;
  30. #endif
  31. `;