Contents

Geometry Modifier (RealityKit)

A function that manipulates the location of a model’s vertices, run once per vertex.

Parameter Types

Parameter descriptions

Model Position Offset

The offset to each vertices model position.

Color

The color of each vertex.

Normal

The normal vector for each vertex.

Bitangent

The bitangent vector for each vertex.

Uv0

A set of texture coordinates for each vertex.

Uv1

A set of texture coordinates for each vertex.

User Attribute

A user-defined attribute to apply to each vertex of the object.

User Attribute Half4 0

A user-defined attribute the node attaches to each vertex of the object.

User Attribute Half4 1

A user-defined attribute the node attaches to each vertex of the object.

User Attribute Half4 2

A user-defined attribute the node attaches to each vertex of the object.

User Attribute Half4 3

A user-defined attribute the node attaches to each vertex of the object.

User Attribute Half2 0

A user-defined attribute the node attaches to each vertex of the object.

User Attribute Half2 1

A user-defined attribute the node attaches to each vertex of the object.

Discussion

The Geometry Modifier node can be used to cause a material to affect the geometry of any object to which it’s applied, in addition to the objects texture. Connect the output of the Geometry modifier node to the Custom Geometry Modifier output of your material. Below is an example of a simple node graph that uses the Geometry Modifier node to alter the Y model positions of vertices.

[Image]

Use the Noise 2D node to procedurally generate an amount to offset the Y position of each vertex. You can also use the noise to add shadows to the texture in order to show the change in model position more clearly. Below, the resulting material applies to a plane.

See Also

Nodes