Implement materials
This fixes kneirinck/OpenJK#6
This fixes kneirinck/OpenJK#5