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 coloured red, Z-axis coloured 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’]
- class simvx.graphics.renderer.grid_pass.GridPass(engine: Any)[source]¶
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