I was just hoping to get some opinions on the shader creation/integration pipeline.
I need to store material shaders on a per-model basis, but then I need to integrate them with scene shaders like deferred lighting and shadows.
Ideally it seems that the best idea would be to define the material shaders in meta-code stored in the model, then have the engine dynamically integrate them with the scene shaders. I don't like the idea of pre-generating all of the combinations in a seperate application, I'd like the engine to do that as required.
I know that unreal and project offset have in-house shader editing tools that automatically map data outputs etc.
Are there any good open source solutions that provide nice code generation for shaders?
I need to store material shaders on a per-model basis, but then I need to integrate them with scene shaders like deferred lighting and shadows.
Ideally it seems that the best idea would be to define the material shaders in meta-code stored in the model, then have the engine dynamically integrate them with the scene shaders. I don't like the idea of pre-generating all of the combinations in a seperate application, I'd like the engine to do that as required.
I know that unreal and project offset have in-house shader editing tools that automatically map data outputs etc.
Are there any good open source solutions that provide nice code generation for shaders?