Skip to content
This repository was archived by the owner on Feb 11, 2024. It is now read-only.

Screen effect to remove flickering pixel artefacts. Please test this everyone!#95

Open
Henry00IS wants to merge 28 commits intosabresaurus:masterfrom
Henry00IS:TJunctionEliminator
Open

Screen effect to remove flickering pixel artefacts. Please test this everyone!#95
Henry00IS wants to merge 28 commits intosabresaurus:masterfrom
Henry00IS:TJunctionEliminator

Conversation

@Henry00IS
Copy link
Collaborator

@Henry00IS Henry00IS commented Apr 15, 2018

Post process screen effect to remove flickering pixel artefacts. An alternative solution to actually going in and fixing the mesh (it takes ages for the algorithm to complete at the moment).

Add the script to your camera object:

image

You will immediately feel better:

image


On your Camera object you MUST DISABLE MSAA for this shader to work:
If you do need MSAA use an Antialiasing screen effect below this script.

You can download this SabreCSG version here. Please test it and let me know if it all works as it should.

@sabresaurus
Copy link
Owner

This will help a lot of people who have the performance to spare but I worry this is not a long term solution.

… edges and it works way better with transparent textures.
@Henry00IS
Copy link
Collaborator Author

I have significantly improved the artefact detection. It will no longer blur edges and it works way better with transparent textures.

@sabresaurus While it's true that this is going to inevitably take some performance I have been unable to determine any slowdown using Unity's statistics. To the point where I believe it's just too lightweight to make any difference on my system. I will need some feedback from someone with a laptop or alike.

@Henry00IS
Copy link
Collaborator Author

I mean unless you mean having an image effect to do MSAA, because yes that's a real problem and performance hog... I am going to have a look at a solution for it.

@Henry00IS
Copy link
Collaborator Author

Added MSAA support to the shader, some configurable parameters as well as a debug mode.

image

It's nice making screenshots without artefacts!

@nukeandbeans
Copy link
Contributor

I have tested this and it seems to work rather well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants