Pryme8 Posted December 1, 2017 Share Posted December 1, 2017 https://pryme8.github.io/TileMaster/editor/index2.html So what I am trying to do now, is debug what the gl error that is poping up is coming from.. Its something about a value not being bound correctly but im not sure how to track this down. What I am trying to do is I have the first scene with the shader, and the ability to select a tile on the atlas. Once this tile is selected I am trying to display it in the secondary scene or the preview output canvas which has a second shader that I am going to be doing the animation preview on. I just need to figure out where the error is coming from, I know the second shader sampling method is wrong at this moment but ill fix it once I figure out this gl error first.https://github.com/Pryme8/TileMaster/blob/gh-pages/editor/index2.html#L130 line 130 on is what handles the second shader and the bindings. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted December 1, 2017 Share Posted December 1, 2017 It seems some texture from one webgl context are being bound to another one somehow. Could you try to remove your webworker and use the max version of bjs for test purpose ? Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted December 1, 2017 Author Share Posted December 1, 2017 So I need to make two instances of the texture in order to bind it to tow seperate shaders? Quote Link to comment Share on other sites More sharing options...
Sebavan Posted December 1, 2017 Share Posted December 1, 2017 for two shaders it is fine, but here it seems two webgl contexts are used Pryme8 1 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted December 1, 2017 Author Share Posted December 1, 2017 Thanks got it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.