Search the Community
Showing results for tags 'gridmaterial'.
Found 3 results
Gunmage posted a topic in Questions & AnswersI am trying to make a 3d reference grid with a cube, and I would like to know if there is a way to start the gridMaterial's grid at one of the mesh vertices. By default it seems to start at the center of the face, and it is not quite what I need - if cube size is not a multiple of grid ratio, cube vertices are not grid points (like so - https://www.babylonjs-playground.com/#5S6MD#15). Is there a way to do this with gridMaterial, or should I explore other possibilities?
I'm not sure if this is intended or it just isn't able to, but the GridMaterial currently doesn't seem to support shadows. I've tried different methods, but with no luck. Using an example of the BabylonJS shadow tutorial moving the ground into a grid shows this problem clearly; https://www.babylonjs-playground.com/#Y5IZCF#2 It would be awesome if the GridMaterial could support this as it provides a efficient way to render a high scale grid performance wise.