glEnable(GL_TEXTURE_GEN_S);
glEnable(GL_TEXTURE_GEN_T);
+ if(node) {
+ glMatrixMode(GL_MODELVIEW);
+ glPushMatrix();
+ glMultMatrixf(node->get_matrix()[0]);
+ }
+
glMatrixMode(GL_TEXTURE);
glLoadIdentity();
glScalef(1, -1, 1);
glLoadIdentity();
glMatrixMode(GL_MODELVIEW);
+ if(node) {
+ glPopMatrix();
+ }
glPopAttrib();
}
const AABox &BlobExhibit::get_aabox() const
{
- Box box = Box(priv->vol, node->get_matrix());
+ Box box = Box(priv->vol, node ? node->get_matrix() : Mat4::identity);
calc_bounding_aabox(&aabb, &box);
return aabb;
}