Default axis width multiplier relative to minorStep.
True once destroy() has been called.
When true, RenderManager will render this grid each frame.
Default fade end distance from camera in XZ.
Default fade start distance from camera in XZ.
When true, the quad is centered under the camera in XZ by default.
Default half-size of the rendered quad in world units.
True once init() has successfully allocated resources.
Default major grid color.
Default spacing for major grid lines.
Default minor grid color.
Default spacing for minor grid lines.
World-space "forward" direction (second floor-plane axis).
Default is [0,1,0], matching the Scene default.
World-space "right" direction (first floor-plane axis).
Default is [1,0,0], matching the Scene default.
World-space "up" direction. Matches the Scene's CoordinateSystem.worldUp.
Default is [0,0,1] (Z-up), matching the Scene default.
Default X-axis color.
Default Z-axis color.
Frees all GL resources owned by this renderer.
Safe to call more than once.
Allocates GL resources and compiles shaders.
Safe to call more than once; subsequent calls are no-ops after successful initialization.
Renders one frame of the infinite grid for the given view.
Called by RenderManager when enabled is true.
Infinite ground grid renderer for xeokit V3.
Integrated into RenderManager and rendered once per frame via
render(viewRenderState)when enabled is true.Features:
fwidthNotes:
init()once, thenrender(viewRenderState)each frame when enabled