|
This is a 3rd party software question i'd highly appreciate if you could answer. How to export CgFX from 3ds Max / Maya / Lightwave / etc, for further conversion into ShaderLab?
(comments are locked)
|
|
By default, DirectX shaders, including CGFX files, are saved in \maps\fx\ in the 3ds Max program directory.
(comments are locked)
|
|
You can cut and paste the bulk of the Cg code from the CgFX file to a ShaderLabs file, because ShaderLabs supports Cg, but you still have to rewrite the top-level constructs of how to handle passes, renderstates, fallbacks, and semantics. Lance Sun: Thanks, but actually what I was asking was about generating the CgFX code to begin with. I'm looking for the "Export CgFX" button in these DCC tools. After texturing and adding lots of special materials and effects to my model, how do I get my hands on the CgFX shader code behind it. (For clarification, I ended off explaining why I need this, the answer being because - once I figure out how to generate the CgFX code - I'm gonna convert it to ShaderLab, as you explained).
Dec 17 '09 at 06:47 AM
kingIZZZY
I don't know about the others, but Max has a comes with a couple of shaders you can use. (StandardFX.fx)
Dec 17 '09 at 11:19 AM
Lance Sun
(comments are locked)
|
