Skip to content

Tutorials (CornellBox and CornellBoxShadow) use wrong number of vertices #181

Open
@norsetto

Description

In the CreateMesh call, nvert is passed as:

int nvert = objshape.mesh.positions.size()

but objshape.mesh.position is a std::vector<float> not a std::vector<float3> so this should really be:

int nvert = objshape.mesh.positions.size() / 3

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