| 174 | } |
| 175 | |
| 176 | void ColladaAppMaterial::resolveColor(const domCommon_color_or_texture_type* value, LinearColorF* dst) |
| 177 | { |
| 178 | if (value && value->getColor()) { |
| 179 | dst->red = value->getColor()->getValue()[0]; |
| 180 | dst->green = value->getColor()->getValue()[1]; |
| 181 | dst->blue = value->getColor()->getValue()[2]; |
| 182 | dst->alpha = value->getColor()->getValue()[3]; |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | // Generate a new Material object |
| 187 | Material *ColladaAppMaterial::createMaterial(const Torque::Path& path) const |