How to Explode a Mesh?

I’d like to be able to separate all the faces of a mesh and transform them indiviudually, I’ve done this in CPU with vertex buffers, but there is presumably a way to do it in GPU, dx11 would be nice, but dx9 would be usefull too, anyone done this already?

quite easy tho

FaceExtrude.rar (3.3 kB)

Thank you :)

Hi. This is a nice solution. However, where are the colours coming from? I’d like to add a colour input but so far I can only do a mix with the existing colour variable, which looks odd. (Ideally a 2 colour input would be useful, so one could gradient between the two).