Fixes material generation for new shaders/material system