I was able to get "Intro to Shader Programming" version of normal mapping working but it is only using the light from the "sun". I want the normal maps to work with the lights I place in the scene. is there and easy way to do this? Any help is appreciated. Thanks in advance.
Re: normal mapping from scene lights
[Re: gettarobox]
#177078 01/09/0803:4301/09/0803:43
Do you want to learn HLSL, or just have this shader?
If you just want the shader, there are a few. In fact, I've got one in my signature below. Otherwise, there's also one in the Wiki, as well as Slin's Shader-Collection
I can't seem to get the normals to compute the scene lights. I am using the shooter project template and the grenade guns explosions are computing properly but none of the lights I place in the scene.
Last edited by gettarobox; 01/10/0818:28.
Re: normal mapping from scene lights
[Re: gettarobox]
#177080 01/10/0810:3101/10/0810:31
No. I'm not exactly sure why WED has the checkbox. AFAIK, It will (eventually) create a dynamic light, but for now conitec hasn't completed that feature yet...
Quote: No. I'm not exactly sure why WED has the checkbox. AFAIK, It will (eventually) create a dynamic light, but for now conitec hasn't completed that feature yet...
Hi xXxGuitar
I'm new to this and hope my question isn't too newbie. I'm using that cool normal mapping shader. I'm using the sun along with other dynamic lights in a scene, the shader uses the sun to calculate the normal mapping however the only way the dynamic lights affect the model ontop of the sun is specularity (it seems). Is this what should be happening? Anyway you can get the models' light to be calculated from the nearest dynamic light (if there are no dynamic lights then the sun)? Anyway to have dynamic lights affect a model with a normal mapping shader the same way they do models with no shader?