mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +00:00
3DFileViewer: Add 'normals' to Mesh constructor
This change allows a Mesh object to be created with a vector of normals.
This commit is contained in:
parent
7fb8af73bf
commit
5fd58a2663
3 changed files with 7 additions and 3 deletions
|
@ -127,5 +127,5 @@ RefPtr<Mesh> WavefrontOBJLoader::load(Core::File& file)
|
|||
}
|
||||
|
||||
dbgln("Wavefront: Done.");
|
||||
return adopt_ref(*new Mesh(vertices, tex_coords, triangles));
|
||||
return adopt_ref(*new Mesh(vertices, tex_coords, normals, triangles));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue