mojojojo Posted January 25, 2017 Share Posted January 25, 2017 Hi I want to draw a mesh to the stencil buffer, like this: http://www.babylonjs-playground.com/#YKWLS#2 and clear the buffer on each frame. For some reason the buffer remains. Anyone has an idea why? Cheers Quote Link to comment Share on other sites More sharing options...
Sebavan Posted January 26, 2017 Share Posted January 26, 2017 onAfterRenderObservable happens after rendering and as you are not doing any other operations the stencil will not have any impact. http://www.babylonjs-playground.com/#YKWLS#4 Nabroski and mojojojo 2 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.