Use shader for sprite floorclip fix when shaders enabled + fix papersprites being afffected by it #143

Closed
alufolie91 wants to merge 9 commits from shaderspriteclip into Saturn-Next
pull from: shaderspriteclip
alufolie91 commented 2024-11-20 21:34:15 +01:00 (Migrated from github.com)

What it says in title.

This basically uses a Shader "fix" when you have shaders enabled instead of doing a bunch of maths and directly changing sprite polygon vertices on your CPU lul
Shaders off will behave the same as before.
Also fixes papersprites being affected by the clipfix which they shouldnt (was the cause of papersprite signs z-fighting lol)
plus some refactoring

What it says in title. This basically uses a Shader "fix" when you have shaders enabled instead of doing a bunch of maths and directly changing sprite polygon vertices on your CPU lul Shaders off will behave the same as before. Also fixes papersprites being affected by the clipfix which they shouldnt (was the cause of papersprite signs z-fighting lol) plus some refactoring
alufolie91 commented 2024-11-26 22:22:40 +01:00 (Migrated from github.com)

turns out the shader is slow as hell kek
redid just the refactor part without the shader in diff branch, since it looks a bit cleaner

turns out the shader is slow as hell kek redid just the refactor part without the shader in diff branch, since it looks a bit cleaner

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: saturn/SRB2Kart-Saturn#143