1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-22 20:25:28 +08:00
Commit Graph

17 Commits

Author SHA1 Message Date
夜轮_NachtgeistW
c4b1eb0dd8 docs: replace 冯氏 to 风氏 2024-07-22 22:06:55 +08:00
SuperAo
27c2ba632b proofread 02 Basic Lighting.md. 补全译文与相应链接 2024-04-09 10:49:42 +08:00
冰糖雪狸
d33979b034 修复 翻译错误 2022-10-17 00:38:57 +08:00
ryosga
ed97fa6caa Update 02 Basic Lighting.md
光源时静止的 -> 光源是静止的
2022-05-12 20:21:54 +08:00
Gary Wang
09c3ffc8fe Merge pull request #233 from weiwen1990/patch-3
改进翻译
2022-05-03 01:54:27 +08:00
WEI Wen
86c9e6b6d4 改进翻译
根据原文Specular Lighting部分,改进翻译,修改了几处翻译错误。
2022-04-26 01:19:15 +08:00
WEI Wen
bdb13b5f97 翻译更准确
原文:
Inversing matrices is a costly operation for shaders, so wherever possible try to avoid doing inverse operations since they have to be done on each vertex of your scene. For learning purposes this is fine, but for an efficient application you'll likely want to calculate the normal matrix on the CPU and send it to the shaders via a uniform before drawing (just like the model matrix).
In the diffuse lighting section the lighting was fine because we didn't do any scaling on the object, so there was not really a need to use a normal matrix and we could've just multiplied the normals with the model matrix. If you are doing a non-uniform scale however, it is essential that you multiply your normal vectors with the normal matrix.
2022-04-25 18:56:33 +08:00
WEI Wen
cf5ac876a7 翻译更准确
The normal matrix is defined as 'the transpose of the inverse of the upper-left 3x3 part of the model matrix'.
2022-04-25 17:01:24 +08:00
Krasjet
3367f88807 05-01, fix #108, update readme 2018-09-02 17:49:11 -04:00
Meow J
4d1e85ba1b Fix #77 2017-07-01 14:27:04 +08:00
Meow J
1ea5f9db73 Update 03-01 2017-06-26 02:22:13 +08:00
Meow J
341d22cde2 Literally rewrite 02-03 2017-06-21 02:05:03 +08:00
Meow J
689e936dc7 Update 02-02 2017-06-19 03:31:22 +08:00
Meow J
f0dd66f4b9 Move all the images to this repo. Close #53 2016-09-17 02:11:48 +08:00
Meow J
ff320b16b9 Replace all the references with relative links 2016-07-22 02:00:57 +08:00
Meow J
3ef7a53627 Fix all the titles 2016-07-06 01:42:55 +08:00
Meow J
4e77d1edc8 New theme 2016-07-04 18:02:36 +08:00