Parameters are now properly set in materials