Among them, those who did good work in this world [in their past life] attain a good birth accordingly. They are born as a brāhmin, a kṣatriya, or a vaiśya. But those who did bad work in this world [in their past life] attain a bad birth accordingly, being born as a dog, a pig, or as a casteless person.(Chandogya-Upanishad, Verse 5.10.7)
तद्य इह रमणीयचरणा अभ्याशो ह यत्ते रमणीयां योनिमापद्येरन्ब्राह्मणयोनिं वा क्षत्रिययोनिं वा वैश्ययोनिं वाथ य इह कपूयचरणा अभ्याशो ह यत्ते कपूयां योनिमापद्येरञ्श्वयोनिं वा सूकरयोनिं वा चण्डालयोनिं वा ॥ ५.१०.७ ॥
tadya iha ramaṇīyacaraṇā abhyāśo ha yatte ramaṇīyāṃ yonimāpadyeranbrāhmaṇayoniṃ vā kṣatriyayoniṃ vā vaiśyayoniṃ vātha ya iha kapūyacaraṇā abhyāśo ha yatte kapūyāṃ yonimāpadyerañśvayoniṃ vā sūkarayoniṃ vā caṇḍālayoniṃ vā
Do the the "bad work" includes being materialistic. Or it is limited to things like killing, murder, theft and etc.