gridPattern

gridPattern

Rectangular grid pattern.

This operator produces different types of values from the grid depending on the selected Format.

Parameters

Name Description Regular Handling Read-Only Handling
Format

What type of values to produce from the pattern.

Baked Baked
  • Grid Edges: Produces float values, with 0 for the grid cells and 1 for the edges between cells.
  • Grid Distance: Produces float values with the raw distance from the edge, like an SDF.
  • Grid Normalized Distance: Produces float values with the distance scaled so that edges are 0 and cell centers are 1.
  • Grid Color: Produces vectors with the chosen color for the cells and the edges.
Translate

Moves the entire pattern.

Runtime Baked
Size

Scales the pattern.

Thickness

Thickness of the edges between the cells.

Blending

Amount of blending between cells and edges.

Fill Color

Color to use for the cells (when applicable).

Edge Color

Color to use for the edges (when applicable).

Spacing Runtime Baked

Inputs

  • Coordinate Field: (optional) Field that produces vectors that the pattern uses as coordinates instead of regular spatial position. Only the X and Y parts are used.
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: vec4
  • Spacing Field: (optional) Field that controls the sizing of the grid cells.
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
    • Supports Variables From Inputs: coordField
  • Thickness Field: (optional) Field that controls the thickness of the edges between cells.
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables From Inputs: coordField spacingField
  • Blending Field: (optional) Field that controls the amount of blending between cells and edges.
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables From Inputs: coordField spacingField thicknessField
  • Fill Color Field: (optional) Field that provides colors for the cells.
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
    • Supports Variables From Inputs: coordField spacingField thicknessField blendingField
  • Edge Color Field: (optional) Field that provides colors for the edges.
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
    • Supports Variables From Inputs: coordField spacingField thicknessField blendingField fillColorField