Dustyroom / flat-kit-doc

Documentation of the Flat Kit asset.
https://flatkit.dustyroom.com
Apache License 2.0
2 stars 1 forks source link

Stylized surface shader and Ambient Occlusion #20

Closed molleindustria closed 3 years ago

molleindustria commented 3 years ago

The URP now ships with a screen based ambient occlusion render feature

It looks like the stylized surface shader doesn't support it. When activated it makes flat shaded objects translucent if source is "depth normals" or unaffected by AO if source is "depth". It also kills the flat kit fog. Image below, the darker object in the background has a standard material affected by AO: Image 004

I tried adding the depth normals feature but the result is the same.

I know it's a new feature but cartoon shading and AO go well together.

dustyroom-studio commented 3 years ago

Thank you for starting the issue. We are planning to add support to the new AO to Flat Kit in a future update. Stay tuned.

molleindustria commented 3 years ago

Browsing through the Unity shader sources I found this page that might offer some starting points https://github.com/Unity-Technologies/Graphics/blob/d73079e2b43ee22ae2cb989620c6298fd4a9c9a8/com.unity.render-pipelines.universal/Documentation~/upgrade-guide-10-0-x.md

dustyroom-studio commented 3 years ago

We've added SSAO support to Flat Kit, it will become available in the next update which should be in the Asset Store next week.

dustyroom-studio commented 3 years ago

The update with SSAO support is now live in the store.