color-frag-params.glsl.ts 861 B

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