Added support for effects in Material.