BG Chap 17 - Three types of sacrifice
That sacrifice which is performed according to scripture without desire for results, with the mentality that it should be done simply because of scriptural injunction, is in the mode of goodness. The inspiration to do a sacrifice without some motive comes from thinking that the sacrifice needs to be done solely because of instructions in the Vedas to do so.
The sacrifice which is performed with the intention of enjoying the results (for some material benefit like gaining Svarga), or for ostentation, to show one’s greatness, is in the mode of passion.
Any sacrifice performed which is contrary to scripture, without food distributed, without chanting of proper Vedic mantras or the mantras are lacking in pitch or syllables, in which the priests are not paid, and which is performed without faith because of animosity towards the priest, is in the mode of ignorance.