1
0
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:
1i9h7_b1u3
2025-01-14 18:48:17 +08:00
committed by GitHub
parent 189387630c
commit 8dee669152
6 changed files with 11 additions and 13 deletions

View File

@@ -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;