Page 1 of 1

Depth writing problem with tessellation and custom lighting

PostPosted: Sat Jun 23, 2018 6:14 pm
by DSoM
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 1052 times


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

Re: Depth writing problem with tessellation and custom light

PostPosted: Mon Jun 25, 2018 7:16 pm
by Ricardo Teixeira
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!