gridSdf

gridSdf

Keywords:
  • bars
  • grid
sdf
gridSdf
RayTK
v0.42

An infinite grid shape, along two axes.

Parameters

Name Description Regular Handling Read-Only Handling
Coord Type

allows the shape to be used in a 2D context.

  • 2D:
  • 3D:
Cross Section Shape

choose the shape of the bars of the grid. Not available in 2D mode.

Baked Baked
  • Circle:
  • Diamond:
Axis

choose which axis the grid should face.

Runtime Baked
  • X:
  • Y:
  • Z:
Spacing

spacing between the bars of the grid. If this value is very small and the Thickness is high enough, the bars can merge into a solid surface. But if it is set to zero the grid will disappear due to a calculation error.

Runtime Baked
Axis Offset

shifts the grid forwards or backwards along the Axis that it is facing. Not available in 2D mode.

Runtime Baked
Offset

shifts the grid along its plane.

Runtime Baked
Thickness

the thickness of the bars.

Runtime Baked
Contexttype

advanced parameter that should usually just be set to Context

  • :
  • :
  • :
  • :
  • :
Pattern Baked Baked
  • Grid (2D):
  • Axis 1 Bars:
  • Axis 2 Bars:

Inputs

  • Spacing Field: (optional)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
  • Thickness Field: (optional)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float