New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[unity] Bug in pixel-lit shader - parts shining through #1335
Comments
Potentially similar problem reported here on the forum: |
The problem has the following cause: Background:
The
The
The problem: Why?
Solution:
Also note that if Z Spacing does not move overlapping parts in Z direction, you will need to visit the Spine Editor to adapt the skeleton and re-export so that the overlapping parts can be on different Z-depth. Alternative shaders:
Proposed changes to the Spine-Unity 3.8 runtime
|
…hining through - changed ZWrite to always On, otherwise ForwardAdd pass will incorrectly show lit hidden parts. Added recommendation warning box in SkeletonRenderer inspector for Z Spacing on enabled ZWrite shaders. Closes #1335.
Fixed on 3.8-beta branch via above commit. |
As reported on the forum:
http://esotericsoftware.com/forum/Lit-shader-problem-with-layers-11810
Repro package received via email:
FMfcgxwCgLmmGMJhLtFczndPRWbfnZDx
Occurs in pixel-lit Spine shader variants with at least one point light.
It seems as if the add-pass does not properly do a depth-test but add the light in occluded parts of a character as well. This leads to an undiscovered shine-through effect.
The text was updated successfully, but these errors were encountered: