Open Choca13 opened 5 years ago
What do you mean with shadow "post-processing"? Fixed-size textures currently work only read-only. Writing is always done with the framebuffer size. Writing to fixed size textures probably needs Image Load Store: #791. Configurable shadow buffer formats: #1712, #944.
What preprocessing would you want to do?
By "shadow post-processing" I mean doing post-processing on the shadow data (or something else) and outputing to the shadowcolor buffers. Pre-processing stages would be mostly for me, as I want to render my sky and clouds at half or quarter resolution while using forward shading (which I use on my low-end shaderpacks). Currently, doing this would complexify the rendering too much and slow things down.
Do you mean the post-shadow composites to run from the shadowlight viewpoint and the next pre-gbuffers composites to run from the player viewpoint?
pre-gbuffers composite have to run at render resolution, and shadow composites have to render at shadow map resolution. Just drawing a quad.
+1
I could be interested by having something similar to deferred or composite programs, but running right before gbuffers programs (should not be too complicated imo).
Also, but more complicated, being able to do "post-processing" on shadow data could have a lot of uses:
However a few things should be added with this: