Arvtesh / UnityFx.Outline

Screen-space outlines for Unity3d.
MIT License
1.26k stars 90 forks source link

URP 14.0.8 Issue with 'Enable Depth Testing' Property #74

Open james-arndt opened 1 year ago

james-arndt commented 1 year ago

There seems to be a bug with URP 14.0.8 and Unity 2022.3.6f1. When setting the Render Flag property to "Enable Depth Testing" on the Outline Settings asset, the render is corrupted and a warning message pops up in the console.

upload_2023-9-12_15-35-27

efeurun commented 1 year ago

Also experiencing the same problem with Unity 2022.3.8f1.

Matrix64 commented 6 months ago

I found a way to fix this, and when I changed the input value "depthTexture" in line 77 of the OutlinePass.cs to "_renderer.cameraDepth", the feature worked fine again!and line 61 could also be commented out. image image

efeurun commented 6 months ago

@Matrix64 Thanks for the tip, unfortunately didn't work for me.

Matrix64 commented 6 months ago

@efeurun You can try this project in Unity 2022.3.18f1, In order to compress the file size, I deleted the Library folder OutlineTest.zip

Matrix64 commented 6 months ago

If you are prompted to convert the code when running the project, select No image

sandeeen commented 5 months ago

I found a way to fix this, and when I changed the input value "depthTexture" in line 77 of the OutlinePass.cs to "_renderer.cameraDepth", the feature worked fine again!and line 61 could also be commented out. image image

Hero! This worked on 2022.3.20f1