When tessellation is enabled but the light model is set to "Custom Lighting" the tessellation is not applied when writing to the depth buffer, leading to incorrect shadows and other artifacts when either vertex displacement or Phong tessellation is used. When light model is set to "Standard" the tessellation is applied correctly.
I'm using the newest version v.1.5.4.001, although this has been a problem in the previous versions too. Unity version is 2017.3.1f1.
Below is an image showing shadows bleeding through the tessellated and displaced surface.
The shader is pretty much the simplest possible but I attached it in case you need to take a look.
Depth writing problem with tessellation and custom lighting
Depth writing problem with tessellation and custom lighting
- Attachments
-
- TessellationDepthProblem.zip
- (2.51 KiB) Downloaded 228 times
- Ricardo Teixeira
- Posts: 954
- Joined: Fri Aug 09, 2013 2:26 pm
Re: Depth writing problem with tessellation and custom light
Hello,DSoM wrote:When tessellation is enabled but the light model is set to "Custom Lighting" the tessellation is not applied when writing to the depth buffer, leading to incorrect shadows and other artifacts when either vertex displacement or Phong tessellation is used. When light model is set to "Standard" the tessellation is applied correctly.
I'm using the newest version v.1.5.4.001, although this has been a problem in the previous versions too. Unity version is 2017.3.1f1.
Below is an image showing shadows bleeding through the tessellated and displaced surface. The shader is pretty much the simplest possible but I attached it in case you need to take a look.
Our apologies for the delay, we were away for Unite Berlin, we should be back to speed in the next couple of days.
Thank you for reporting the issue, from our tests it seems to only be present when using the Standard Surface Light Node. We've registered the reported problem, we'll get back to you as soon as one of our developer runs a few additional tests.
Thanks!
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!