ultraq / redhorizon

Recreating the original 2D Command & Conquer games
Apache License 2.0
6 stars 4 forks source link

Render to texture, then apply post-processing shaders 🤦‍♂️ #49

Closed ultraq closed 3 years ago

ultraq commented 3 years ago

For the screen effect shaders I was using, I applied them directly in the render-to-screen step which is causing some epic artifacting when the thing being drawn isn't a full-screen texture already (ie: anything that isn't the videos/animations). I really should be rendering everything first to a texture, then applying those screen effect shaders to that texture when it goes to the screen, oops 🤦‍♂️

ultraq commented 3 years ago

This is done now and implemented as a 'rendering pipeline'. The only thing I'd really like to do now is make that pipeline more configurable.