leanderr Posted May 24, 2018 Share Posted May 24, 2018 Hey there, optimizing some Scenes I tried instancing some objects with a grid shader. Those Instances don't show up. I've stumbled upon this thread which discusses dealing with custom self made shaders. The provided Solutions won't work for the Materials provided by the Babylon Material Library tho. Can anyone fix my playground? Playground: https://playground.babylonjs.com/#NPRMJH#1 best Regards, Leander Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted May 24, 2018 Share Posted May 24, 2018 That is because that shader does not have instance support, https://github.com/BabylonJS/Babylon.js/blob/3d3067023fede303181b0f5cc4e18578bb20bf1b/materialsLibrary/src/grid/grid.fragment.fx #include<instancesDeclaration> #include<instancesVertex> need to be added to the fragment but I dont have time this morning to do a pull request. 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.