Custom Material support + testcase

Signed-off-by: Kai Börnert <kai-boernert@visiongamestudios.de>