I need a shader that can handle transparent and specular properties. All the built in shaders that support these features seem to pack all the data into the alpha channel of the diffuse texture, which means you don’t have independent control of these properties.
Is there anyway around this besides editing the shader? I’ve had a look through the documentation and the forums and I couldn’t really find one. I’m happy to do so, I just wanted to double check before I went and did some work I didn’t have to.
The built-in Transparent/Specular shader is pretty lame. You’ll have to edit it to separate the source. I recommend putting the specular map in a different layer, so that the VertexLit fallback looks right.
We aren’t going to be using parallax mapping, so I’m going to place spec into the alpha of the normal map. This should hopefully not alter the fallback too much. To test the fallback levels, is it best to just use the Graphics Emulation? I run a DX10 ATI card, and don’t have all of the levels of graphics cards to test with.
Short of actually testing with all of your target graphics configurations, Graphics Emulation is your best bet. Note that it doesn’t emulate actual performance, but just uses fallbacks where the level of emulation does not support a given subshader. You might see strange behaviour on some cards that claim to support a shader, but get incorrect results. Usually this is due to outdated drivers, though, so it’s not something to worry too much about.