Brightness.js 368 B

1234567891011
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "uniform sampler2D colorTexture;\n\
  3. uniform float brightness;\n\
  4. varying vec2 v_textureCoordinates;\n\
  5. void main(void)\n\
  6. {\n\
  7. vec3 rgb = texture2D(colorTexture, v_textureCoordinates).rgb;\n\
  8. vec3 target = vec3(0.0);\n\
  9. gl_FragColor = vec4(mix(target, rgb, brightness), 1.0);\n\
  10. }\n\
  11. ";