True: Friction depends on the types of surfaces involved and how hard the surfaces push together.
Total thermal energy is the answer to your question.