Hi, I'm begining to work with Sunburn Pro and the Custom Effects Example. I wonder if there is any easy way to translate or adapt FX shaders made with ShaderFX (plugin for 3dMax) for Sunburn Deferred rendering system.
I can see some of the variables (see picture) of the shader on the Sunburn editor, but I cannot make it work properly when I combine ambient and diffuse passes.
I see that a Deferring Node exist on ShaderFX but I didn't find any documentation about it. Any of you guys have experimented with that node in ShaderFX??
It doesn't seem like anyone has tried to do this yet. While it's very easy to import any shader into a SunBurn custom effect, the shader will need to follow some rules to work correctly.
Forward rendered shaders simply have to expose via SAS bindings or common semantics (outlined in the SAS and Semantics Supported Bindings article) their transforms and light variables (if the shader uses lighting).
Deferred rendered shaders provide these as well, and are also required to provide separate techniques that perform rendering for the g-buffer, depth-optimization, final, and shadow map generation passes.
The sample shaders in the Custom Effects example are a great starting point. They're very well commented and explain how each member and technique is exposed and what it's used for.
Let me know if this helps!