Gets the axis line thickness in CSS pixels.
Sets the axis line thickness in CSS pixels. Defaults to 2.
Gets whether the lines contrast with the scene.
Sets whether the lines are black over light parts of the scene and white over dark ones, instead of their theme colors. Needs the scene color map, see CameraComponent#requestSceneColorMap. Defaults to false.
Gets whether the written depth is dithered.
Sets whether the written depth is dithered by line coverage, so faint lines partly hide what is behind them. Suits gaussian splats. Defaults to false.
Gets the fraction of the camera distance the grid's depth moves toward the camera by.
Sets the fraction of the camera distance the grid's depth moves toward the camera by, so a coplanar surface doesn't hide it. Defaults to 0.001.
Gets whether the grid is depth tested against the scene.
Sets whether the grid is depth tested against the scene. Defaults to true.
Gets whether the lines write depth.
Sets whether the lines write depth, hiding transparent meshes and gaussian splats behind them. Defaults to false.
Gets whether the grid has no edge.
Sets whether the grid has no edge. When false, it is sized by its node's scale along the plane's axes. Defaults to true.
Gets the major line thickness in CSS pixels.
Sets the major line thickness in CSS pixels. Defaults to 1.5.
Gets the mesh instances to add to a render component or layer: the lines and their depth pass. They have no node, so set one when adding them to a layer directly.
Gets the minor line thickness in CSS pixels.
Sets the minor line thickness in CSS pixels. Defaults to 1.
Gets whether the lines through the origin use the axis colors.
Sets whether the lines through the origin use the axis colors. Defaults to true.
Gets the cell size the levels are scaled from.
Sets the cell size the levels are scaled from, in world units. Defaults to 10.
Gets how many cells of a level fit across one of the level above.
Sets how many cells of a level fit across one of the level above, or 1 for a single fixed level. Defaults to 10.
Gets the theme.
Gets whether the grid is visible.
Sets whether the grid is visible. Defaults to true.
Destroys the mesh instances and materials. Remove the mesh instances from use first.
An anti-aliased reference grid whose levels of lines follow the zoom. It follows the camera and fades out with distance, or is sized by its node's scale when not Grid#infinite. It lies at its node's position and rotation; use Grid#spacing to size the cells.
Relevant Engine API examples: