arkeus / Axel

An open source, hardware accelerated 2D flash game library
http://axgl.org
MIT License
77 stars 25 forks source link

Feature request: add color (ColorTransform) + fog color #2

Open Wiering opened 12 years ago

Wiering commented 12 years ago

In Flash, I normally use ColorTransform a lot. In Axel, it seems like only the multiply part is available, not the add/offset part. Could that be added?

Also, having a fog color (+ fog intensity) would be great. So the final color would be:

(color * colorTransformMul + colorTransformAdd) * (1 - fogIntensity) + fogColor * fogIntensity