Reyes/micropolygon renderer in Scala