Thanks a lot!! What I’m confused about is how to access the stencil inside the global shader. You mention “you can then use the scene texture node inside to grab the stencil”, but since it’s not a material, I have no idea how to actually do that hahah. Is there a function for global shaders similar to the material node, or does it require a custom setup in TemporalAA.cpp? Thanks!