mirror of
https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git
synced 2025-08-23 04:35:28 +08:00
修改一处笔误
启用模版测试,所以此处应该是 GL_STENCIL_TEST
This commit is contained in:
@@ -125,7 +125,7 @@ void main()
|
||||
我们首先启用模板测试,并设置测试通过或失败时的行为:
|
||||
|
||||
```c++
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
glEnable(GL_STENCIL_TEST);
|
||||
glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE);
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user