Hi guys!
Sorry for this noob post but I'd really appreciate some help with WebGL. I'm coding a game with Phaser, which handles rendering, but as there is no satisfying Phaser plugin for Spine, I'm using Spine runtimes. Issue is, I have to dive into the rendering code as it's no longer Phaser that renders my spine objects.
Canvas rendering went on pretty smooth. No issue there.
WebGL, on the other hand, is causing me a lot of trouble. Truth is, I really don't know it, so it's pretty hard for me to figure out how to render my objects. I used the examples to see how to use the API, but my issue is that there seems to be a conflict between the renderers. Either I render my Phaser game, either I render my spine object. One seems to override the other, and it seems to happen on the shader.bind() call of my Spine object.
I don't know what the exact problem is : is the Spine renderer completely deleting the Phaser renderer, or is it just drawing above the Phaser rendrer? I don't know. But I can only see one at a time.
Any help / best practices for this kind of game would be tremendously appreciated!
Thanks guys!