Solution from @JohnK is great!
However, if you don’t want to use two boxes, you can try this one:
https://playground.babylonjs.com/#1QIWRQ
I thought it could be fun to recreate this material in the NME!
I used some simple computations for the lights, feel free to experiment (use texture instead of fixed color, for eg).