Skip to content

ludus::graphics::renderer::WorldGridPlane

Ludus Wiki · API overview · Browse API

Struct

Camera-relative plane of an adaptive world grid, drawn analytically by renderer_grid.slang. Lines sit at integer multiples of SpacingWorld along the two unit axes; every tenth is major.

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/world_grid.hpp

#include <ludus/graphics/renderer/world_grid.hpp>
struct ludus::graphics::renderer::WorldGridPlane final

Fields

CenterWorld

foundation::math::Vector3 ludus::graphics::renderer::WorldGridPlane::CenterWorld {}
Snapped grid centre on the plane, in world units; the radial fade is measured from it.

Related types: foundation::math::Vector3

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/world_grid.hpp

HorizontalWorld

foundation::math::Vector3 ludus::graphics::renderer::WorldGridPlane::HorizontalWorld {1, 0, 0}
Unit direction of the first plane coordinate (the X axis, or the orthographic horizontal).

Related types: foundation::math::Vector3

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/world_grid.hpp

VerticalWorld

foundation::math::Vector3 ludus::graphics::renderer::WorldGridPlane::VerticalWorld {0, 0, 1}
Unit direction of the second plane coordinate (the Z axis, or the orthographic vertical).

Related types: foundation::math::Vector3

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/world_grid.hpp

SpacingWorld

foundation::float32 ludus::graphics::renderer::WorldGridPlane::SpacingWorld = 1
Minor line spacing in world units, a power of ten.

Related types: foundation::float32

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/world_grid.hpp

ExtentWorld

foundation::float32 ludus::graphics::renderer::WorldGridPlane::ExtentWorld = 0
Half the side of the drawn quad in world units; lines are fully faded at this distance.

Related types: foundation::float32

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/world_grid.hpp

FadeStartWorld

foundation::float32 ludus::graphics::renderer::WorldGridPlane::FadeStartWorld = 0
Distance from the centre where the radial fade begins, in world units.

Related types: foundation::float32

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/world_grid.hpp

LinePixels

foundation::float32 ludus::graphics::renderer::WorldGridPlane::LinePixels = 1
Width in pixels of minor and major lines.

Related types: foundation::float32

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/world_grid.hpp

AxisPixels

foundation::float32 ludus::graphics::renderer::WorldGridPlane::AxisPixels = 1
Width in pixels of the two coordinate axis lines on the plane.

Related types: foundation::float32

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/world_grid.hpp

MinorColor

foundation::math::Vector4 ludus::graphics::renderer::WorldGridPlane::MinorColor {}
Straight linear RGBA colour of minor lines.

Related types: foundation::math::Vector4

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/world_grid.hpp

MajorColor

foundation::math::Vector4 ludus::graphics::renderer::WorldGridPlane::MajorColor {}
Straight linear RGBA colour of every tenth line.

Related types: foundation::math::Vector4

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/world_grid.hpp

HorizontalAxisColor

foundation::math::Vector4 ludus::graphics::renderer::WorldGridPlane::HorizontalAxisColor {}
Straight linear RGBA colour of the line along HorizontalWorld through the origin (a coordinate axis).

Related types: foundation::math::Vector4

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/world_grid.hpp

VerticalAxisColor

foundation::math::Vector4 ludus::graphics::renderer::WorldGridPlane::VerticalAxisColor {}
Straight linear RGBA colour of the line along VerticalWorld through the origin (a coordinate axis).

Related types: foundation::math::Vector4

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/world_grid.hpp

NormalAxisIndex

foundation::usize ludus::graphics::renderer::WorldGridPlane::NormalAxisIndex = 1
Index (0 X, 1 Y, 2 Z) of the coordinate axis perpendicular to the plane. It is not on the plane, so it stays the ribbon among the last WORLD_GRID_AXIS_COUNT lines of BuildWorldGridLines.

Related types: foundation::usize

Declared in modules/graphics/renderer/include/ludus/graphics/renderer/world_grid.hpp