I dont think you can easily use precompiled cg code in cgfx. if you use the asm style, you probably have to define all parameter bindings and such manually (look at directx .fx files that use precompiled asm for example). However I am not sure if that even works with cgfx at all. technique AsmFrag { pass { FragmentProgram…
Hello everyone When I was working with hlsl I used to compile using fxc via proprietary tools. It helped me figure out the number of instructions, use asm shaders etc. Nowadays I'm working only in maya so the cgfx plugin was taking care of the compilation. I've been trying to use nvidia cgc (from the CGtoolkit) to produce…
Hi there, somebody helped me and i succeed outputting something from the PS by forcing the profile. Still, I can't get it to load up in maya. I'm confused about the syntax I should use to integrate the asm code in the cgfx. the shader i use for testing is very short, so the line 57 is the technique definition already.