Material optimization

@mariomguy

Please define, what are you referring to as shader complexity.