Linear Fog and glFrustum
I am using fixed function pipeline and linear fog (and for compatibility reasons I cannot changed this now).
I am rendering couple of viewpoints with off-axis glFustrum, and with different near plane distance.
The problem I am seeing is that far away object (my "skydome") gets different amount of fog on the
I first thought that the reason was my different near plane, but when I scaled my frustum, so that the near planes matched the difference is still there. (I did the scaling by scaling all the frustum parameters except the far plane, at this point I was afraid that I would introduce bad far plane clipping)
I have checked that If I copy my projection matrix from the first view to the second view before sky dome rendering, then the fog seems to match, so the issue appears to be really projection matrix related.
(Yes, I am pretty sure I am not doing projection matrix abuse)
Any hints and pointers either solving this problem or describing the interaction between projection matrix and (linear) fog would be appreciated.