Indev450 / SRB2Kart-Saturn

GNU General Public License v2.0
24 stars 9 forks source link

Rework Palette Rendering #86

Closed alufolie91 closed 8 months ago

alufolie91 commented 8 months ago

This completely reworks the palette renderer to use parts from Hannu Hanhi´s amazing work on https://git.do.srb2.org/STJr/SRB2/-/merge_requests/1516

This brings a few benefits, aswell as making the code easier and more understandable

However, some things from the old code remains, primarily the shader handling and the postprocess step This is due to the Shader code/handling in srb2 works alot differently than in Kart which would require substantial rework The postprocess shader is still applied in the DrawScreenFinalTexture directly as opposed to being applied to its own seperate screen texture, which may lead to some brightness issues in some cases, as screen fades or transparent surfaces (maybe someone can figure this out, ive commented out the related code in i_video.c)

This should be tested thoroughly, but from my testing everything seemed to work really well

New Code kart0451

Old Code kart0452

Software Renderer kart0433