Lighting gets off when cam rotates [GLSL]

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
ent1ty
Competition winner
Posts: 1106
Joined: Sun Nov 08, 2009 11:09 am

Post by ent1ty »

Well, i know the What, but I still don't know the Why, so you're welcome to solve that one :lol:
irrRenderer 1.0
Height2Normal v. 2.1 - convert height maps to normal maps

Step back! I have a void pointer, and I'm not afraid to use it!
TCM
Posts: 53
Joined: Mon May 24, 2010 9:29 pm

Post by TCM »

Question:

You project the light onto a plane (TerrainSceneNode) ?

This object does not provide the required normals?
ent1ty
Competition winner
Posts: 1106
Joined: Sun Nov 08, 2009 11:09 am

Post by ent1ty »

Please, stop hacking my thread and start yours :!:

You render normals to the g-buffer, read some paper(s) on deferred rendering.


For the time being, I've decided to use ARGB8 for normals, cos I can't seem to be able to solve this. I will return to this problem after release and try to fix it then(unless I can think of something in my dreams).
irrRenderer 1.0
Height2Normal v. 2.1 - convert height maps to normal maps

Step back! I have a void pointer, and I'm not afraid to use it!
Post Reply