1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-22 20:25:28 +08:00
This commit is contained in:
Meow J
2017-04-02 15:18:43 +08:00
parent 8a4d1e0889
commit 0b42a6392d

View File

@@ -82,7 +82,7 @@ void main()
因为窗口的宽是800当一个像素的x坐标小于400那么它一定在窗口的左边这样我们就让物体有个不同的颜色。
![](../img/04/08/advanced_glsl_frontfacing.png)
![](../img/04/08/advanced_glsl_fragcoord.png)
我们现在可以计算出两个完全不同的片段着色器结果,每个显示在窗口的一端。这对于测试不同的光照技术很有好处。