Custom Shader Compatibility

This page is only relevant for Forward and Forward+ rendering paths. If you are using deferred rendering, custom shader graphs that use the Lit material will automatically work.

AdaptiveGI natively supports custom shader graphs by using a subgraph. To add AdaptiveGI support to a custom shader graph, simply put the Sample AdaptiveGI subgraph between your custom graph nodes and the fragment shader output. To add the subgraph, simply right click in the shader graph window, select Create Node and double click Sample AdaptiveGI. After that connect each output of the subgraph to the corresponding input on the fragment block.

Right Click -> Create Node
Open AdaptiveGI -> Sample AdaptiveGI
Connect the outputs of the Sample AdaptiveGI subgraph to the inputs on the Fragment block
The completed AdaptiveGI compatible shadergraph

Now you can connect your shader graph outputs as normal to the Sample AdaptiveGI subgraph.

Last updated