light shader

Posted By: draculaFactory

light shader - 09/27/06 21:33

Is there a shader that will allow models to be affected by static lights similar to how geometry is affected?
Posted By: Lion_Ts

Re: light shader - 09/27/06 23:17

You can get this with c_scan(...SCAN_LIGHTS) to static lights and pass light parameters to the shader in material skills.
[edit]
or c_trace to get tex_light & tex_color of floor (in case of wmb level, not made from models) and pass that values to the shader

Posted By: draculaFactory

Re: light shader - 09/28/06 00:41

thats a good idea but i dont know about making shaders, your idea gives me an idea though, however i am making a level completely from models. ive tried geometry and if one thing goes wrong its a pain in the butt lol
Posted By: draculaFactory

Re: light shader - 09/28/06 12:26

Oh well, this is a good method, but it isn't good for what I need. Thank you though.
Posted By: Lion_Ts

Re: light shader - 09/28/06 22:11

I don't know any other method to pass info about static lights to the shader in the current version of 3dgs
Posted By: draculaFactory

Re: light shader - 09/29/06 09:52

Yea this is a tricky subject, however, I was peeking at some code from loopix and his day night system has a nice way of faking this kind of thing.
© 2023 lite-C Forums