From c9d94febbca45d4789d5e0bfcadfd83fa7f03e05 Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Wed, 7 Aug 2024 19:00:40 +0200 Subject: [PATCH] add passlist for imgui --- assets/example.passlist | 58 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 assets/example.passlist diff --git a/assets/example.passlist b/assets/example.passlist new file mode 100644 index 0000000..5f2562f --- /dev/null +++ b/assets/example.passlist @@ -0,0 +1,58 @@ +passlist "Forward Passlist" +{ + attachment "DepthBuffer" + { + format "PreferredDepthStencil" + } + + pass "DepthPrepass" + { + impl "Depth" + { + MatPass "DepthPass" + } + + depthstenciloutput "DepthBuffer" + } + + attachment "ForwardOutput" + { + format "RGBA16F" + } + + pass "ForwardPass" + { + impl "Forward" + output "Output" "ForwardOutput" + depthstencilinput "DepthBuffer" + depthstenciloutput "DepthBuffer" + flag "LightShadowing" + } + + attachment "Gamma" + { + format "RGBA8" + } + + pass "Gamma correction" + { + impl "PostProcess" + { + Shader "PostProcess.GammaCorrection" + } + + input "Input" "ForwardOutput" + output "Output" "Gamma" + } + + attachmentproxy "ImguiOutput" "Gamma" + + pass "Imgui" + { + impl "Imgui" + input "Input" "Gamma" + output "Output" "ImguiOutput" + } + + output "ImguiOutput" +} \ No newline at end of file