Closed
Description
getting-started中可能存在两个问题:
1.在3-improving.md文件中的Back to the Fragment shader (again)部分存在以下代码:
float fogValue = vertexPosition < fogEnd ? smoothstep(fogStart, fogEnd, vertexPosition) : 1.0;
此代码中的vertexPosition
没有在上下文中提及且没有声明,推测应该为vertexDistance
2.在4-directional-lighting.md中的Enhanced directional lighting部分存在以下代码:
float NdotL = max(0.2, dot(normal, normalize(shadowLightPosition));
此代码中缺少一个')'
Activity
WGrav01 commentedon Aug 28, 2024
Translated to English:
WGrav01 commentedon Aug 28, 2024
The first error was fixed in PR #18,
I'll open another PR to fix the second issue.(Fixed in #20)