cell: Generate blend / depth test code when state atom is created