Skip to content
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] Shadow alpha cutoff ignores SlotColor.a #1350

Closed
HaraldCsaszar opened this issue May 10, 2019 · 0 comments
Closed

[unity] Shadow alpha cutoff ignores SlotColor.a #1350

HaraldCsaszar opened this issue May 10, 2019 · 0 comments
Assignees
Labels

Comments

@HaraldCsaszar
Copy link
Collaborator

As reported on the forum:
http://esotericsoftware.com/forum/Hide-Spine-Sprites-From-Casting-Shadows-at-Runtime-11929

All Spine shaders shall have the following line changed:
clip(texcol.a - _Cutoff);
to
clip(texcol.a * i.vertexColor.a - _Cutoff);
And vertex attributes transferred accordingly.

@HaraldCsaszar HaraldCsaszar self-assigned this May 10, 2019
HaraldCsaszar added a commit that referenced this issue May 10, 2019
…lor.alpha at all Spine shaders. Now the texture color is multiplied with slot color before the alpha test. Closes #1350.
HaraldCsaszar added a commit that referenced this issue May 10, 2019
…a cutoff` shader parameters ignoring SlotColor.alpha). See #1350.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant