Wingnut Posted July 31, 2016 Share Posted July 31, 2016 Are you talking about MY playing with applyDisplaceMapFromBuffer? The "buffer" is just a pile of data... you could fill it dynamically or however. I stole that func from BabylonJS heightMap/displaceMap features. Both need to start with a 2D image, gathered from a context2D canvas. In the jack-o-lantern demo, we see it happening at lines 22-47. Line 46 is the lovely buffer-maker, grabbing the image data from the context2D canvas that was created in line 24. Buffer is just a storage tank, for a pile of data. Color data, I believe. Glad that you found playground search. It works pretty well. It doesn't enjoy periods in its search terms. ie. someobj.propname. Perhaps that has been improved since I last checked. webGLmmk and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
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.