- Изменено
Tint Black for XNA Runtime
I recently discovered that XNA isn't capable of using the Tint Black option in the Spine editor. Does anyone know a workaround for this or where to get a shader for XNA?
spine-xna and spine-monogame both support tint black out of the box:
https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-xna/example-content/SpineEffect.fx#L31
https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-monogame/example/Content/SpineEffect.fx
Just apply the SpineEffect.fx and you're good to go.
https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-xna/example/src/ExampleGame.cs#L78
Mario написалspine-xna and spine-monogame both support tint black out of the box:
https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-xna/example-content/SpineEffect.fx#L31
https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-monogame/example/Content/SpineEffect.fxJust apply the SpineEffect.fx and you're good to go.
https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-xna/example/src/ExampleGame.cs#L78
Thank you. I was able to get this working. In my case, I had already modified my own shaders and changed some stuff in the runtime. But I was able to use this info to get it all working in the end.