vahith Posted February 5, 2015 Share Posted February 5, 2015 hi all; i am applying texture to mesh,after some case i want to apply color and i want to do vice verse.. but when i applying color or texture it overlap the texture or color but its not removing.here is the reference http://www.babylonjs-playground.com/#IYYFY#1 Quote Link to comment Share on other sites More sharing options...
jerome Posted February 5, 2015 Share Posted February 5, 2015 something like this ? http://www.babylonjs-playground.com/#2EUHZW#1 click to see the change discussed here : http://www.html5gamedevs.com/topic/12192-vcolor-over-textures/?p=70350 just have a look line 30 Quote Link to comment Share on other sites More sharing options...
RaananW Posted February 5, 2015 Share Posted February 5, 2015 If you want to remove the texture, simply set it to null (after disposing it, to clear resources) - something like this? http://www.babylonjs-playground.com/#IYYFY#2 Quote Link to comment Share on other sites More sharing options...
vahith Posted February 5, 2015 Author Share Posted February 5, 2015 Hi RaananW;when i am click the sphere i need red color again when i click sphere i need texture,here is the modified reference http://www.babylonjs-playground.com/#IYYFY#3 Quote Link to comment Share on other sites More sharing options...
RaananW Posted February 5, 2015 Share Posted February 5, 2015 http://www.babylonjs-playground.com/#IYYFY#4 vahith 1 Quote Link to comment Share on other sites More sharing options...
vahith Posted February 5, 2015 Author Share Posted February 5, 2015 hi RaananW ; thanks for your solution.. 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.