More skills needed

Posted By: Matt_Aufderheide

More skills needed - 11/30/03 01:21

I think there shoud be more skills passed directly to the shader from the entity.. one vector isnt really enough if you are trying to do multiple per pixel lights for instance. Ideally you could pass as many vecskills as you want.
Posted By: ventilator

Re: More skills needed - 11/30/03 10:06

you could pass 4 vectors with the user matrix!
Posted By: Matt_Aufderheide

Re: More skills needed - 11/30/03 10:55

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.
Posted By: RogerLevy

Re: More skills needed - 12/02/03 09:54

this might be a dumb suggestion but.... could you use a pointer to a large enough array?
Posted By: Matt_Aufderheide

Re: More skills needed - 12/02/03 16:01

No i dont think so.. the array cant be passed to the shader on a per-entity basis.
Posted By: jcl

Re: More skills needed - 12/02/03 18:58

Light vectors will be available for shaders as soon as the new light management system from the forecast page is ready.
Posted By: Matt_Aufderheide

Re: More skills needed - 12/03/03 01:10

oh.. awsome
© 2024 lite-C Forums