Hi, After playing a bit with Irrlicht&Ogre I´m thinking about coming back to GS and doing a real game-project. So I`m interested in programming a "better" normalmapping shader for GS. Well, I didn´t have any problems with doing the shader fx stuff, but i want every objekt to be lighten by, lets say, 8 lights (or 4 or what ever), and heres the problem, every object shuold be only affected by the 8 nearest lights. Is there a posibility to get those nearest lights?? All Gs shader i´ve seen affected every objekt the same way. In other engins (Irrlicht) there is a render callback, that is called everytime a model is rendered, and in this callback its possible to set the shader params. Is there something equvalent in GS??
thx in advance TGM
Re: PP Normalmapping how to get the nearest lights??
[Re: TheGameMaker]
#103567 12/23/0604:1312/23/0604:13
thx... After thinking about it, I came over, that it may be the best idea to get the bearest Lights every frame and save it in a skill, and pass those skills to the shader... Or have i overlooked something?? TGM
Re: PP Normalmapping how to get the nearest lights
[Re: TheGameMaker]
#103569 12/23/0611:4812/23/0611:48
8 lights all in all?? damished thats to less... I thought it were 8 per lighten surface/poly/object. well... thats a problem.. so I have to code my own light managment, if I want around 50 lights, but each objekt just lit by 8 or even less.... right???
Re: PP Normalmapping how to get the nearest lights
[Re: TheGameMaker]
#103573 12/23/0620:2912/23/0620:29