Question regarding custom fog for feature level < 9.3

I have a pretty low knowledge level for shader programming, so I was a little confused about this and wanted to clarify.

Is the right approach for feature level < 9.3 and addressing fog to create surface shader(s) for all models and inject the example Tomas provided? (of course having needed texture map defintions, ‘surf’ procedure, et al.)

which, when fog is enabled in RenderSettings… the “mycolor” final pass composites final rgb value to use (based on those settings)?

How does this impact feature level support > 9.3? Do I need to be concerned with this and have alternate level checks… or does ShaderLab handle that for me? :slight_smile: because (at this point) I have no clue how to do that yet.

The shader which I provide will work on any feature level.

Regarding question which fog, it totally depends on the shader, as far as I recall, that shader has linear fog implementation. That also means that fog type setting in Render Settings doesn’t have any effect if you use that shader :wink:

Tomas, can you sent me a example. This fog question has trouble me some days. :frowning:
My mail is lijianxin@me.com

The link can be found here - http://docs.unity3d.com/Documentation/Manual/windowsstore-gettingstarted.html