Hi guys!
I try to implement height based fog on vertex programs and got this result: http://fgfs.narod.ru/screen1.jpg
As you see on non highly tesselated surface you got dissapointing results (
Is there a way to improve it as in fixed pipeline fog?
Thanx in advance
Bye
Your problem is that the fog is interpolated per-vertex. You should be computing the height and fog value per-fragment intead.
so it could be done via fragment programs only?
Hi!
How did you do the vertex program fog? I tried to find some information some time ago but I didn’t succeed. Can you post some code or ideas?
Thanks.