Original Post
Hi there, I want to enabled/disable blending an the blend function with my cg shaders. The problem is, I usually have to change their states inside my code but how should my program know wheter a shader makes a material semi-translucent? I googled a bit and found the CgFX standard, but it seems like it's hard to implement and I'd like to continue with simple cg shaders. Is there any way how I could manage this or is it true that I have to know which shaders will require blending related stuff at compile-time?