Hi,
I have some meshes running trough a vertex program and all is fine, but, when i enable fog, everything gets messed up.
So, when the fog is enabled, the mesh becomes in full fog, if the fog color is blue, the mesh is 100% blue.
So, i did this in the vertex program :
"ATTRIB fogP = vertex.attrib[5];
""MOV result.fogcoord, fogP;
"
But, now the mesh seems looks like there’s no fog enabled, it seems the fog density or something like that is missing in the vp.
Anyone knows how to fix this ?
thanks,
Bruno