Author Topic: Line Renderer Support?  (Read 16 times)

Trey Hayden

  • Guest
Line Renderer Support?
« on: February 23, 2021, 01:51:06 PM »
Hey there!  The new SSRR library seems to have a strange time handling Line Renderers (see below). 



The reflected angle seems to be off and doesn't display properly.  Would like to leave a nice review on the Asset Store, hopeful that this is a quick solution.

Thanks!
-Trey

Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 6630
    • View Profile
Re: Line Renderer Support?
« Reply #1 on: February 24, 2021, 11:51:56 AM »
Hi Trey,

This is a limitation of all SSRR with transparent materials. The workaround is to make the effect render before transparent objects.
Go to Global Settings and change this option:


Screen Space Raytraced Reflection performs a depth-buffer raytracing. Since transparent objects do not write to this buffer, the reflection you see on the floor is actually the line render color on the wall reflected on the ground.

Regards
« Last Edit: February 24, 2021, 12:36:02 PM by Kronnect »

Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 6630
    • View Profile
Re: Line Renderer Support?
« Reply #2 on: February 24, 2021, 01:17:15 PM »
Using a tweaked transparent shader that also renders to depth can also work. Try the attached material/shader.
Note that this is a "trick" and could not be perfect but it could be a workaround for this case.