r/GraphicsProgramming • • Jul 16 '22

Question Fullscreen fragment vs Compute

What's your suggestion for lighting pass in deferred shading and why? 🤔

https://twitter.com/GENTS83/status/1547295760999399424?t=aUDbcn3-meGO6zIO1dSYVQ&s=19

Jul 23 '22
28 Fullscreen triangle
38 Compute shader
0 Upvotes

1 comment sorted by

2

u/Klumaster Jul 19 '22

Compute has the advantage that you can do things like tiled rendering, because you're in charge of what threads access what pixels, you can have a threadgroup parallel-cull the lights that can affect a certain set of pixels.