Psalm 104 is one of the "great" passages (prayer/meditation) on the Creator.  David is praising the Creator for His many marvelous works in creation.  It appears he is "thinking through" Genesis 1 and then reflecting back on the Lord.