material: Ported work from basic_lighting.