I am learning Reality Composer Pro, and am trying to implement a test GeometryModifier.
I have a 3D model that I can display in the Vision Pro simulator.
To modify its geometry, I have set up a Shader Graph that should do the following.
From the model position, I separate the z position. If it is greater that a middle value of the models z values, I add an offset. The x and y offsets are set to 0. The 3 values are combined and used as the model position offset, so that the upper half of the object should be lifted.
But the displayed object is not modified, neither in the Reality Composer Pro 3D display, nor in the Vision Pro simulator.
I verified that the Ifgreater
node has the correct threshold, and the custom material is assigned to the object.
How can I debug what goes wrong?
EDIT:
I still do not know if it is possible to debug a shader graph, but my specific problem was solved by adding additionally a properly set up MaterialXPreviewSurface
to the Custom Surface input
of the Outputs
node.
Apparently an open input does not allow rendering.