1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-23 04:35:28 +08:00

fix 入门-坐标系统 这一段代码多了一个括号 #289

This commit is contained in:
SuperAo
2024-04-02 15:56:19 +08:00
parent 821276062b
commit aadcb18b2e

View File

@@ -217,7 +217,7 @@ void main()
我们还应该将矩阵传入着色器(这通常在每次的渲染迭代中进行,因为变换矩阵会经常变动):
```c++
int modelLoc = glGetUniformLocation(ourShader.ID, "model"));
int modelLoc = glGetUniformLocation(ourShader.ID, "model");
glUniformMatrix4fv(modelLoc, 1, GL_FALSE, glm::value_ptr(model));
... // 观察矩阵和投影矩阵与之类似
```