Fog question

  1. ) I have just read in the reference manual that enabling fog in the render settings increases performance? It seems like it would do the opposite since adding fog adds the task of blending multiple textures with a solid color. Or is the reference manual saying that adding fog can increase the performance by allowing for a nearer far clip plane on the camera?

  2. ) Also, the fog looks really bad on large objects like the ground. Is there a way to have fog only apply to certain objects or how to stop the ground and long walls from looking all black (or what ever color you set the fog to be)?

And I don’t know if it is relevant at all, but I’m building for the iphone.

  1. Yes, that.

  2. Yes, only uses fog in the shaders for the objects you want fog on.

I’ve never used anything but the default shaders. Would it be easy to create a shader that is basically a copy of the default diffuse, but doesn’t render fog? Or would that require a lot of coding?

It’s exceedingly easy.

Fog {Mode Off}

will override whatever is happening behind the scenes in a surface shader. If you’re not using a surface shader, then modify whatever is in the fog block.