Skip to content

Instantly share code, notes, and snippets.

View TimKrause2's full-sized avatar

Timothy Krause TimKrause2

View GitHub Profile
#pragma once
#include <Eigen/Dense>
#include <glm/matrix.hpp>
template<typename T, int m, int n>
inline glm::mat<m, n, float, glm::precision::highp> E2GLM(const Eigen::Matrix<T, m, n>& em)
{
glm::mat<m, n, float, glm::precision::highp> mat;
for (int i = 0; i < m; ++i)
{