Skip to main content

interface.RenderStateGrid

API > RenderStateGrid

Interface: RenderStateGrid

Grid related render state.

Properties

axisX

readonly axisX: ReadonlyVec3

The grid's x-axis in world space.

Source

@novorender/core3d/state/index.ts:311


axisY

readonly axisY: ReadonlyVec3

The grid's y-axis in world space.

Source

@novorender/core3d/state/index.ts:314


color1

readonly color1: RGB

Color of minor grid lines.

Source

@novorender/core3d/state/index.ts:302


color2

readonly color2: RGB

Color of major grid lines.

Source

@novorender/core3d/state/index.ts:305


distance

readonly distance: number

Max distance to render grid in meters.

Source

@novorender/core3d/state/index.ts:327


enabled

readonly enabled: boolean

Turn grid on and off.

Source

@novorender/core3d/state/index.ts:299


origin

readonly origin: ReadonlyVec3

The grid's origin/center coordinate in world space.

Source

@novorender/core3d/state/index.ts:308


size1

readonly size1: number

Minor grid cell size

Default Value

1

Source

@novorender/core3d/state/index.ts:319


size2

readonly size2: number

Major grid cell size

Default Value

10

Source

@novorender/core3d/state/index.ts:324