I have to agree with knackered on this one. It's better to have them in separate files so that you can mix the files depending on what you need. On the other hand, one of the great things about Cg is the ability to set states within the effect file, such as sampler filtering/wrapping modes amongst many others.



