fov slider input maps menu stuff
[carveJwlIkooP6JGAAIwe30JlM.git] / model.h
diff --git a/model.h b/model.h
index ca7c0b1d5f73d95c1a913fd5857fa552b9eb368e..99aa2f112d44346bbb546793803eef2c7edff0dc 100644 (file)
--- a/model.h
+++ b/model.h
@@ -674,5 +674,13 @@ VG_STATIC void mdl_link_materials( mdl_context *root, mdl_context *child )
    }
 }
 
+VG_STATIC void mdl_invert_uv_coordinates( mdl_context *mdl )
+{
+   for( int i=0; i<mdl->info.vertex_count; i++ )
+   {
+      mdl_vert *vert = &mdl->vertex_buffer[i];
+      vert->uv[1] = 1.0f-vert->uv[1];
+   }
+}
 
 #endif