Jump to content

Reflection edge artefacts when using probes + msaa


Recommended Posts

It's a subtle issue, but around the edges of objects lit by an environment probe is a thin line of pixels, the colour of the pixels is determined by the diffuse buffer. This doesn't occur when anti-aliasing is disabled.

 

Example:

example1.png

 

In the following image I modified the probe shader to simply fill it's volume with a solid colour. object boundaries within the volume display correctly (#2). However, where object edges meet areas that fall outside the volume, the artefacts are visible(#1).

 

example2.png

 

By looking at the edges close up it seems that material buffers are anti-aliased but the probe shader result is not, notice the jagged edge highlighted by the green line.

 

example3.png

 

(Speculation here, but I guess there is some kind of masking happening to cull pixels that fall outside the probes volume in worldspace. If so my guess would be aliasing on that mask is causing the issue. Unfortunately I don't think I can fix this purely in the shader.)

 

It's not a huge issue, but can result in a quite visible outline on reflective objects.

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...