UnityFx.Outline icon indicating copy to clipboard operation
UnityFx.Outline copied to clipboard

URP 14.0.8 Issue with 'Enable Depth Testing' Property

Open james-arndt opened this issue 1 year ago • 6 comments

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

james-arndt avatar Sep 12 '23 19:09 james-arndt

Also experiencing the same problem with Unity 2022.3.8f1.

efeurun avatar Sep 16 '23 12:09 efeurun

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

Matrix64 avatar Feb 27 '24 09:02 Matrix64

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

efeurun avatar Feb 27 '24 10:02 efeurun

@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 avatar Feb 27 '24 11:02 Matrix64

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

Matrix64 avatar Feb 27 '24 11:02 Matrix64

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

sandeeen avatar Mar 27 '24 12:03 sandeeen