ProceduralNodeGridSampler
Inherits: ProceduralNode < Resource < Shared < Object
A point in every cell of a grid.
Description
Section titled “Description”A point at the centre of each cell where the input has density (the bounds of the run when nothing is wired). The grid is aligned to the world, so a place always gets the same point whatever the bounds: good for tiles.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| Vector3 | cell_size | Vector3(1, 1, 1) |
| bool | fill_height | false |
| float | jitter | 0.0 |
| Vector3 | offset | Vector3(0, 0, 0) |
| Vector3 | point_extents | Vector3(0, 0, 0) |
Property descriptions
Section titled “Property descriptions”cell_size
Section titled “cell_size”Vector3 cell_size = Vector3(1, 1, 1)
Setter/getter: set_cell_size(), get_cell_size()
The size of a cell (in 2D, x and y; in 3D, x and z, and y with fill_height).
fill_height
Section titled “fill_height”bool fill_height = false
Setter/getter: set_fill_height(), get_fill_height()
In 3D, also fills the height of the input with cells (a volume).
jitter
Section titled “jitter”float jitter = 0.0
Setter/getter: set_jitter(), get_jitter()
How far each point may move from the centre of its cell, from 0 to 1 (a whole cell).
offset
Section titled “offset”Vector3 offset = Vector3(0, 0, 0)
Setter/getter: set_offset(), get_offset()
Moves the grid.
point_extents
Section titled “point_extents”Vector3 point_extents = Vector3(0, 0, 0)
Setter/getter: set_point_extents(), get_point_extents()
Half the size of each point’s box. Zero: half a cell.