mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-07 03:13:33 +00:00
Use custom normals in model replacement (#3649)
A small change that makes the models look a lot better. Will likely cause a crash if imported model has no normal data, but that's on the user to fix on their model.
This commit is contained in:
parent
ebd02b28a4
commit
d46e9fb8bb
@ -131,9 +131,9 @@ void merc_convert_replacement(MercSwapData& out,
|
||||
x.pos[0] = y.x;
|
||||
x.pos[1] = y.y;
|
||||
x.pos[2] = y.z;
|
||||
x.normal[0] = copy_from.normal[0];
|
||||
x.normal[1] = copy_from.normal[1];
|
||||
x.normal[2] = copy_from.normal[2];
|
||||
x.normal[0] = in.normals.at(i).x();
|
||||
x.normal[1] = in.normals.at(i).y();
|
||||
x.normal[2] = in.normals.at(i).z();
|
||||
x.weights[0] = copy_from.weights[0];
|
||||
x.weights[1] = copy_from.weights[1];
|
||||
x.weights[2] = copy_from.weights[2];
|
||||
|
Loading…
Reference in New Issue
Block a user