useMaterial effect.