| 1 | import falcor |
| 2 | |
| 3 | def setup_renderpass(testbed): |
| 4 | render_graph = testbed.create_render_graph("PathTracer") |
| 5 | render_graph.create_pass("PathTracer", "PathTracer", {'samplesPerPixel': 1}) |
| 6 | render_graph.create_pass("VBufferRT", "VBufferRT", {'samplePattern': 'Stratified', 'sampleCount': 16, 'useAlphaTest': True}) |
| 7 | render_graph.create_pass("AccumulatePass", "AccumulatePass", {'enabled': True, 'precisionMode': 'Single'}) |
| 8 | render_graph.add_edge("VBufferRT.vbuffer", "PathTracer.vbuffer") |
| 9 | render_graph.add_edge("PathTracer.color", "AccumulatePass.input") |
| 10 | render_graph.mark_output("AccumulatePass.output") |
| 11 | testbed.render_graph = render_graph |
| 12 | |
| 13 | def main(): |
| 14 | falcor.Logger.verbosity = falcor.Logger.Level.Info |