Skip to content

3-improving.md中的vertexPosition没有申明,4-directional-lighting.md中的Enhanced directional lighting中的代码块存在语法问题 #19

@Pycnocline

Description

@Pycnocline

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));

此代码中缺少一个')'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions