I'm looking for simple way to texture a polygon (or group of)
so that the color of the polygon would be darker in the middle,
and lighter towards the edges.
A pattern, preferably.
I can see no simple way of doing this and google is not with me today.
On could compose gradients of the outer edges of the polygon, but this
is quite tedious, and it will fail when applied to two polygons next to one
Also, when dealing with simple convex polygons using spherical mapping
is a good approximation, but when there is two such next to another and the
texture should be continous, it will not work.
What do I need this for? I'm trying to build hexagonal maps for a game, and
there are some components such as water that need to be continous and also
follow the forms of the map.
You can see a helpful prototype at: http://cocoon.it.jyu.fi/~aleator/map.png
The forest looks decent and the city is nearly acceptable but the water is
too clean: there should be a different colour at the edges of the water,
and it would need some turbulence.
Any ideas how to accomplish this easily?
Also is there an easy way of blending textures that live on overlapping
- Ville Tirronen