'How to change color in Collada (DAE) files?

I've opened up a dae file in text edit, and found this section:

<effect id="ID0">
  <profile_COMMON>
    <technique sid="COMMON">
      <phong>
        <emission>
          <color sid="emission">0.000000 0.000000 0.000000 1.000000</color>
        </emission>
        <ambient>
          <color sid="ambient">0.000000 0.000000 0.000000 1.000000</color>
        </ambient>
        <diffuse>
          <color sid="diffuse">0.500000 0.500000 0.500000 1.000000</color>
        </diffuse>
        <specular>
          <color sid="specular">0.500000 0.500000 0.500000 1.000000</color>
        </specular>
        <shininess>
          <float>50</float>
        </shininess>
        <index_of_refraction>
          <float>1</float>
        </index_of_refraction>
      </phong>
    </technique>
  </profile_COMMON>
</effect>

I figure the four values must be RGBA, but am wondering what the range is. I'm finding it difficult to find the answer via specifications. Can someone explain this ? All I want is to change the color of different parts of the model.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source