+
+ med->type = MTL_EDIT_TEXTURE;
+ break;
+ }
+
+ if(strcmp(cn->name, "mirror") == 0) {
+ // make this object a flat mirror (hopefully the object is flat otherwise this won't work)
+ float refl = 1.0f;
+
+ struct ts_attr *arefl = ts_get_attr(cn, "reflect");
+ if(arefl) {
+ if(arefl->val.type == TS_NUMBER) {
+ refl = arefl->val.fnum;
+ } else {
+ error_log("invalid reflect attribute in mirror mtledit: %s\n", arefl->val.str);
+ continue;
+ }
+ }
+
+ med->type = MTL_EDIT_MIRROR;
+ med->mirror.reflectivity = refl;
+ break;