From 20e5a7820bb66ab23ab9405f873fc9b0e2d1043e Mon Sep 17 00:00:00 2001 From: Meow J Date: Thu, 25 Jun 2015 23:23:59 +0800 Subject: [PATCH] Fix img path issue --- 02 Lighting/05 Light casters.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02 Lighting/05 Light casters.md b/02 Lighting/05 Light casters.md index 782d750..cd1a347 100644 --- a/02 Lighting/05 Light casters.md +++ b/02 Lighting/05 Light casters.md @@ -92,7 +92,7 @@ else if(lightVector.w == 1.0) 幸运的是一些聪明人已经早就把它想到了。下面的方程把一个片段的光的亮度除以一个已经计算出来的衰减值,这个值根据光源的远近得到: -![Latex Formula](https://raw.githubusercontent.com/LearnOpenGL-CN/LearnOpenGL-CN/master/img/Light_casters1.jpg) +![Latex Formula](https://raw.githubusercontent.com/LearnOpenGL-CN/LearnOpenGL-CN/master/img/Light_casters1.png) 在这里I是当前片段的光的亮度,d代表片段到光源的距离。为了计算衰减值,我们定义3个项:常数项Kc,一次项Kl和二次项Kq。