Different fog modes

Hey,

My art guys are giving me a hard time about not being able to use the same types of fog as they were able to use in our director pipeline.

Am I missing some settings somewhere?

I’m looking for these directx settings:

typedef enum D3DFOGMODE
{
D3DFOG_NONE = 0,
D3DFOG_EXP = 1,
D3DFOG_EXP2 = 2,
D3DFOG_LINEAR = 3,
D3DFOG_FORCE_DWORD = 0x7fffffff,
} D3DFOGMODE, *LPD3DFOGMODE;

Am I correct in my understanding that right now we cannot choose between these, but are stuck with one. (which I think is exp or exp2, but I’m actually not totally sure)

Bye, Lucas

Talking to myself again:

Yes, you seem to be able to specify all the fogmodes one could wish for in a shader. (as nicely documented in the manual… oops) They’re just not available in the edit->render settings. (on my machine)

Bye, Lucas

Correct.

Why they are not exposed in render settings - it’s because once you start doing vertex/pixel shaders, each of them has to be modified to compute different fog type. So all Unity built-in shaders do exponential squared fog, and that’s the default that is used.

If you’re fine with changing all shaders you use to do different fog type, then more power to you. So yeah, it’s possible, but harder than just clicking a checkbox.