yes sure... but what if you want to have 5 lights in a room.. you really need 10, or ideally 15 vectors for that. one for position, one for color, one for range. I cant think of any other way to do it. In my lighting system, you can have as many lights as you want... but the light radii can not intersect. An entity can only be in one light radius at a time. The only way to blend the lights is to have multiple passes fill them in.. and to do that i need more vectors. Also, since the shader needs to get the vector directly from the entity, you can cant feasibly use the matrix or the material skills. Cause the whole thing would change in each pass.. ive tried it.


Sphere Engine--the premier A6 graphics plugin.