multiplyWithColorBalance.js 438 B

1234567891011
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "vec3 czm_multiplyWithColorBalance(vec3 left, vec3 right)\n\
  3. {\n\
  4. const vec3 W = vec3(0.2125, 0.7154, 0.0721);\n\
  5. vec3 target = left * right;\n\
  6. float leftLuminance = dot(left, W);\n\
  7. float rightLuminance = dot(right, W);\n\
  8. float targetLuminance = dot(target, W);\n\
  9. return ((leftLuminance + rightLuminance) / (2.0 * targetLuminance)) * target;\n\
  10. }\n\
  11. ";