Does somebody know where I can find a sample of shader (HLSL / CG / GLSL / Backend-independent) class?
Of course, standard API (like D3DXEffect or same in GL) exists, but it’s kind of ugly and not what I’m looking for.
I’m looking for a high-quality interface design, not “just yet another implementation sample”.
Ideally something ideologically close to boost:: template-based library and “suitable” for different usage cases.
If someone met something similiar (OK if it’s not finished, I’m just going to grab the idea and reimplement it myself). If you have any ideas on a shader concept design, this is also appreciated.
Thank you.
It’s not clear whether you want to re-implement shaders on your own, or whether you want code that load/use shaders. Assuming the latter, you might want to look at the code I posted in this previous answer. I’ve found it quite useful (and pretty easy to use).