projects
/
hair
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
quick backup, commented out some printfs
[hair]
/
src
/
hair.cc
diff --git
a/src/hair.cc
b/src/hair.cc
index
171c7e8
..
2431f50
100644
(file)
--- a/
src/hair.cc
+++ b/
src/hair.cc
@@
-77,7
+77,7
@@
static void get_spawn_triangles(const Mesh *m, float thresh, std::vector<Triangl
faces->push_back(t);
}
}
faces->push_back(t);
}
}
- printf("spawn tri AABB: min y: %f max y: %f\n", min_y, max_y);
+/* printf("spawn tri AABB: min y: %f max y: %f\n", min_y, max_y);*/
}
bool Hair::init(const Mesh *m, int max_num_spawns, float thresh)
}
bool Hair::init(const Mesh *m, int max_num_spawns, float thresh)
@@
-175,3
+175,8
@@
void Hair::draw() const
glPopAttrib();
}
glPopAttrib();
}
+
+void Hair::set_transform(Mat4 &xform)
+{
+ this->xform = xform;
+}