From cf735a322bc1b96131949a6028088881888ecab4 Mon Sep 17 00:00:00 2001 From: JiangMuWen Date: Sat, 4 Feb 2017 21:30:02 +0800 Subject: [PATCH] code tiny error --- docs/05 Advanced Lighting/03 Shadows/02 Point Shadows.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/05 Advanced Lighting/03 Shadows/02 Point Shadows.md b/docs/05 Advanced Lighting/03 Shadows/02 Point Shadows.md index ec3aff4..52a0974 100644 --- a/docs/05 Advanced Lighting/03 Shadows/02 Point Shadows.md +++ b/docs/05 Advanced Lighting/03 Shadows/02 Point Shadows.md @@ -202,7 +202,7 @@ void main() lightDistance = lightDistance / far_plane; // Write this as modified depth - gl_FragDepth = gl_FragCoord.z; + gl_FragDepth = lightDistance; } ``` @@ -476,4 +476,4 @@ PCF算法的结果如果没有变得更好,也是非常不错的,这是柔 - [Shadow Mapping for point light sources in OpenGL](http://www.sunandblackcat.com/tipFullView.php?l=eng&topicid=36):sunandblackcat的万向阴影映射教程。 - [Multipass Shadow Mapping With Point Lights](http://ogldev.atspace.co.uk/www/tutorial43/tutorial43.html):ogldev的万向阴影映射教程。 -- [Omni-directional Shadows](http://www.cg.tuwien.ac.at/~husky/RTR/OmnidirShadows-whyCaps.pdf):Peter Houska的关于万向阴影映射的一组很好的ppt。 \ No newline at end of file +- [Omni-directional Shadows](http://www.cg.tuwien.ac.at/~husky/RTR/OmnidirShadows-whyCaps.pdf):Peter Houska的关于万向阴影映射的一组很好的ppt。