1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-23 04:35:28 +08:00
This commit is contained in:
Meow J
2017-06-29 03:36:15 +08:00
parent 5a3a38108d
commit f25677838a

View File

@@ -173,7 +173,7 @@ void main()
如果我们现在运行程序,我们就能看见深度值随着距离增大是线性的了。尝试在场景中移动,看看深度值是怎样以线性变化的。
![](../img/04/01/depth_testing_visible_linear.png)
![](../img/04/01/depth_testing_visible_linear.png)
颜色大部分都是黑色因为深度值的范围是0.1的**近**平面到100的**远**平面,它离我们还是非常远的。结果就是,我们相对靠近近平面,所以会得到更低的(更暗的)深度值。