Function createGridMaterial
-
Parameters
- options: GridMaterialOptions = {}
Grid appearance and blend options.
Returns ShaderMaterial
A configured ShaderMaterial.
- options: GridMaterialOptions = {}
Grid appearance and blend options.
A configured ShaderMaterial.
Create a Babylon.js-equivalent
GridMaterial: an unlit, procedural object-space grid built on top of createShaderMaterial. The grid math runs entirely in object space — the vertex stage forwards object-space position and normal, and the fragment stage derives per-axis line contributions weighted by the normal.