Sign in to follow this  

How to avoid "shader ghosting" artifacts

This topic is 2042 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey guys

I'm experiencing issues with my pixel shader. As soon as I apply any color change to ONLY SOME BUT NOT ALL pixels (e.g. only to specified materials) I'm getting weird artifacts in the sky (I heard some call that "shader ghosting"):

[sharedmedia=gallery:images:2177]

This happens only in the projected sky cube texture and only unless all pixels are processed equally with the same amount of color change.

Any ideas why this happens and what could be done to avoid it?

Share this post


Link to post
Share on other sites
Thanks. It turned out that I can avoid the ghosting by restricting my shader processing to pixels with alpha equals 1 (Color.a). Since sky seems to have lower alpha channel in my game, it will not be processed at all thus preventing it to draw those awful artifacts.

Share this post


Link to post
Share on other sites

This topic is 2042 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this