Black Dots on Multiplied Gridshape
Got this great patch from the managing multiples article and just wondering is anyone able to say why there are black dots on the bottom of these grid shapes and have any ideas how to remove them, please? breaks the experience a bit with those on... I am referring to the sphere shapes - they have the block dots on the bottom when rotated.
Here's the page I got it from...
You mean shadows?

You can disable the lights and materials to have a flatter effect:

Hey, really appreciate the speedy reply!
Sorry for the lack of clarification. I have some spheres here, one side is fine but rotated 180 there are black dots on the bottom. Any ideas why and how to remove, please?


Ah! I didn't spot them.
Was a fun investigation: it seems that [jit.gl.mesh @auto_normals 1] struggle to compute the normals at the bottom of the sphere for some reason, hence the black hole.
The fix is to take the normals coming from the source. What the two [jit.gl.gridshape] output isn't just the position matrix, but a 12 planes matrix which include position (planes 0-1-2) and the normals (planes 6-7-8). So instead of that [jit.matrix 3 float32 20 20 @interp 1] I used a [jit.unpack 2 @offset 0 5 @jump 3 3] which gives me the two desired matrices. And I removed @auto_normals 1 from the [jit.gl.mesh] as I don't want it to auto-compute the normals anymore.