Skip to content

作业1勘误? #4

@NoSW

Description

@NoSW

GAMES101-HW/hw1/main.cpp

Line 51: float top = -tan(DEG2RAD(eye_fov/2.0f) * abs(zNear));
①这里的括号可能是手误? 应该为tan(DEG2RAD(eye_fov/2.0f)) * abs(zNear);

Line 56: 0,0,(zNear+zFar)/(zNear-zFar),(2zNearzFar)/(zFar-zNear),
②4x4矩阵的第三行第四列,漏掉一个负号?refer to http://www.songho.ca/opengl/gl_projectionmatrix.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions