0
Fixed

Unity SSAO effect renders over object

dangerfro 11 jaar geleden bijgewerkt door Freya Holmér (Developer) 11 jaar geleden 2

Hello,


I have an object in scene with a shader set to recreate a SSS effect. The scene also has an Ambient Occlusion post processing effect attached to the main camera. The SSS shader is currently set to a depth range within the opaque/alpha clip range (<2501) but the AO effect is rendering through it as if it were transparent. The only fix I've been able to find so far is to set the depth range to full transparency (>2500) but that kills whatever shadows it would have otherwise.

Example screen shots below:


Shader set up
http://clip2net.com/s/5PxS2p


Effect at <2501

http://clip2net.com/s/5PxPAm


Effect at >2500
http://clip2net.com/s/5PxARB

Antwoord

+1
Antwoord
Fixed

This is now fixed in Alpha 0.10!

Render Type has been added under the sorting block, it will be auto-assigned unless you uncheck the Auto-Sort box :)

Good catch! Looks like the SSAO post process effect doesn't work at all in SF shaders. I found the issue, I'll get this fixed for 0.10 :)


If you want a working shader meanwhile, open the shader code and beneath "Queue"="blah", add a new line with:

"RenderType"="Opaque"

Excellent, thank ya sir!

+1
Antwoord
Fixed

This is now fixed in Alpha 0.10!

Render Type has been added under the sorting block, it will be auto-assigned unless you uncheck the Auto-Sort box :)