fixed bug introduced to refactoring plane

thx @misch for helping with debugging
fixed setting of material for Instance

also doing shadows now correctly