摘要:
#include void BuildPerspProjMat(double *m, double fov, double aspect, double znear, double zfar){ double ymax = znear * tan(fov * (3.14159265 / 360... 阅读全文
摘要:
#include #include #include #include #include #include #include #pragma comment(lib, "osgd.lib")#pragma comment(lib, "osgViewerd.lib")#pragma comment(lib, "osgDBd.lib")#pragma comment(lib, "osgGAd.lib")#pragma comment(lib, "BulletCollision_vs2010_debug.lib 阅读全文
该文被密码保护。 阅读全文
该文被密码保护。 阅读全文
摘要:
template inline mat4 mat4::perspectiveProjection(type fovy, type aspect, type zNear, type zFar){ type f = (type) 1 / tan(radians(fovy) / 2); return mat4(f / aspect, 0, 0, 0, 0, f, 0, 0, 0, 0... 阅读全文
摘要:
#include #include #include #pragma comment(lib, "glew32.lib")GLuint g_VBO;GLuint g_VBO_TexCoord;GLuint g_VAO;GLuint g_FBO;GLuint g_Texture0;GLuint g_RBO;GLuint g_VBO2;GLuint g_VBO2_TexCoord;GLuint g_VBO2_Color;GLuint g_VAO2;const unsigned int WIDTH = 1024;const unsigned int HEIGHT = 1024;f 阅读全文