Write a platform for custom graphics operations, such as interpolation and
desaturation. First use will be for shadowing inactive rooms.
Completed the task, but learned that if the newly generated graphics context is
not disposed of, the pipeline will be clogged or some other weird behavior. The
new graphics object, "DimmerGraphics", can now be used to apply a lighting
effect to whatever it draws. This is done through interpolation on the RGB
components of the current graphics color with the lighting color and the
current light level, a floating point value between 0 and 1.
In the future, it may be interesting to add a variable amount of light sources,
though these would be shown visually on a per-tile or per-actor basis.
Fragmentation may be worth looking into, though I believe it is beyond the
scope of this project.
Original issue reported on code.google.com by mikeg3...@gmail.com on 12 Nov 2012 at 5:38
Original issue reported on code.google.com by
mikeg3...@gmail.com
on 12 Nov 2012 at 5:38