jit.gl.mesh How to color and fade out.

plem's icon

I have this bigger patch based on the enclosed help-patch from mesh.
What I need to add is a way to color the triangular shaped grid. This works by coloring the jit.gridshape.
But I like to bring the color direct in the gl.mesh, so I can use the alpha for fading out. I would be very surprised if that would be impossible.
But yet, for me it is uphill now.
Who can help me out.
Another way of fading the mesh-image before it goed to be rendered also could be a solution.

Lots of thanks
Peter

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

phiol's icon

hello Plem ,

works here

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

Jean-Francois Charles's icon

@PLEM: you had the blend_enable attribute on for [jit.gl.gridshape], which is what you want if you don't use [jit.gl.mesh] and 'matrixoutput'.
Check out Phiol's example: the only difference is that he turns on [jit.gl.mesh]'s blend_enable attribute, he doesn't even uses the [jit.gl.gridshape]'s one.

plem's icon

Thanks a lot, guys.
You got me going again.

Peter