Mixing normal mapping and optic effects
I am trying to create an effect that uses reflection & refraction with a normal map, for effects like water, windows etc, unfortunately I have a very frustrating problem achieving this.
I have 2 different shaders, one is normal mapping and the other gives optic effects with a cubemap (reflection & refraction), both shaders work perfectly. The problem is I'm trying to put both shaders together for the final effect, and of course failing at it.
I know this is quite a big problem, but if anyone is able to spare a few minutes of their time I would be over the moon with joy!
I thought it would be best if I gave you my shaders and images of the result with the shaders, so I put them all in a 7zip archive for you to view.
BumpMap, Refraction shaders work, SGGlass is the problem shader.
Sorry for asking for so much, I'm just frazzled now.
Edit: Forgot to mention, the final result I keep getting, it looks like the reflection/refraction is not using the normal thats obtained from the normal map, it just continues to look like the original refraction shader.