分页: 1 / 1
DapperDave
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?
2 months ago
- DapperDave
- 帖子: 40
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.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
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
2 months ago
-
Mario - 帖子: 3035
DapperDave
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.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.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
2 months ago
- DapperDave
- 帖子: 40
Mark topic unread
• 分页: 1 / 1
回到 Runtimes
- 当前时区为 UTC