Depth writing problem with tessellation and custom lighting

Node-based Shader Editor

Depth writing problem with tessellation and custom lighting

Postby DSoM » Sat Jun 23, 2018 6:14 pm

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.
TessellationDepthProblem.jpg
TessellationDepthProblem.jpg (117.31 KiB) Viewed 633 times


The shader is pretty much the simplest possible but I attached it in case you need to take a look.
Attachments
TessellationDepthProblem.zip
(2.52 KiB) Downloaded 81 times
DSoM
 
Posts: 1
Joined: Sat Jun 23, 2018 5:02 pm

Re: Depth writing problem with tessellation and custom light

Postby Ricardo Teixeira » Mon Jun 25, 2018 7:16 pm

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.
TessellationDepthProblem.jpg

The shader is pretty much the simplest possible but I attached it in case you need to take a look.


Hello,

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!
User avatar
Ricardo Teixeira
 
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm


Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 0 guests

cron