mirror of
https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git
synced 2025-08-23 12:45:29 +08:00
更新“模型加载”章节 (#329)
* 更新“Assimp”原文 * 更新“网格”代码 * 更新“模型”中模型的漫反射样例图片 * 更新“模型”中模型的镜面高光样例图片 * 更新“模型”中关于模型样例的介绍文本 * 更新“模型”中背包模型的下载地址 * 更新背包模型
This commit is contained in:
@@ -42,7 +42,7 @@ class Mesh {
|
||||
vector<Texture> textures;
|
||||
/* 函数 */
|
||||
Mesh(vector<Vertex> vertices, vector<unsigned int> indices, vector<Texture> textures);
|
||||
void Draw(Shader shader);
|
||||
void Draw(Shader &shader);
|
||||
private:
|
||||
/* 渲染数据 */
|
||||
unsigned int VAO, VBO, EBO;
|
||||
|
Reference in New Issue
Block a user