tangrams / tangram

WebGL map rendering engine for creative cartography
https://tangram.city
MIT License
2.22k stars 290 forks source link

support photoshop-style blend modes #611

Open meetar opened 7 years ago

meetar commented 7 years ago

When a draw-block-level color is applied to a points style with a texture, it's applied to the texture in the points shader as a "multiply". It would be good to allow other kinds of Photoshop-style color blend modes as well without requiring custom shaders.

I have a demo showing other blend modes in action via a shader here:

http://tangrams.github.io/texture-demos/blends/

Shader code here:

https://github.com/tangrams/texture-demos/blob/gh-pages/blends/scene.yaml#L37-L40

References:

bcamper commented 7 years ago

https://en.wikipedia.org/wiki/Blend_modes