Inner material with boolean parts

Hi there,
regarding this post:

How to split one object into many small pieces?

I need a clarification: its possibile to have an “inner” material of pieces?
For example, can Suzanne be red outside and yellow inside?

Thanks!

There’s a few different ways to do this. One simple way is to use a Geometry Node, and use the Backfacing output as the factor for a Mix RGB node between two colors.

and with a quick explode added…

Hi, thank you.
Im tryng with the solution but I cant get it to work.
The steps:

  1. Apply mixed material to mesh
  2. Subdivide mesh using boolen modifier (as indicated in the linked post)
  3. Separate by loose parts.

Result: the inside are now blue instead of red.
Where Im wrong?