simvx.graphics.renderer.grid_pass¶
Infinite ground-plane grid overlay for 3D editor viewports.
Draws an anti-aliased XZ grid using a fragment shader SDF approach. Major lines every 10 units, minor lines every 1 unit, with distance fade. X-axis colored red, Z-axis colored blue (Godot convention).
Module Contents¶
Classes¶
Renders an infinite XZ ground-plane grid behind scene geometry. |
Data¶
API¶
- simvx.graphics.renderer.grid_pass.__all__¶
[‘GridPass’]
- simvx.graphics.renderer.grid_pass.log¶
‘getLogger(…)’
- class simvx.graphics.renderer.grid_pass.GridPass(engine: Any)¶
Renders an infinite XZ ground-plane grid behind scene geometry.
Uses a fullscreen quad with ray-plane intersection in the fragment shader to produce anti-aliased grid lines with proper depth for occlusion.
Initialization
- setup() None¶
Initialize grid pipeline and shaders.
- render(cmd: Any, view_matrix: numpy.ndarray, proj_matrix: numpy.ndarray, extent: tuple[int, int]) None¶
Render infinite grid. Call after skybox but before scene geometry.
- cleanup() None¶
Release GPU resources.