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));
此代码中缺少一个')'