Skip to content

Sign error in vmath.h for ortho() #40

@EdouardThiel

Description

@EdouardThiel

There is a sign error in vmath::orto line 1042

vec4((left + right) / (left - right), (bottom + top) / (bottom - top), (n + f) / (f - n), 1.0f) );

the second last term (n + f) / (f - n) should be (n + f) / (n - f)

following glOrtho documentation.

Because of this error, objects visible with frustum() are no longer visible with ortho().

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