Applying jit.gl.material to jit.gl.mesh

Marigold Maripol's icon

In this patch, I am generating a [jit.gl.mesh] shape and a diffuse map from a [jit.noise 3 float32 20 20] object. I am struggling to get this to apply as the map that I would like, though - since it is only projecting a single color on the shape, rather than a noise character, as it would on a [jit.gl.gridshape].

Any suggestions? Thank you in advance.

Max Patch
Copy patch and select New From Clipboard in Max.

LSka's icon

You need to generate the texture coordinates:

Max Patch
Copy patch and select New From Clipboard in Max.