mirror of
https://github.com/leozide/leocad
synced 2025-01-17 18:11:42 +01:00
Fixed inverted u texture coordinate on cylindrical projections.
This commit is contained in:
parent
0c9c743951
commit
a1dfc7c26c
1 changed files with 1 additions and 1 deletions
|
@ -2025,7 +2025,7 @@ bool lcPiecesLibrary::ReadMeshData(lcFile& File, const lcMatrix44& CurrentTransf
|
|||
float UpLength = lcLength(Up);
|
||||
lcVector3 Front = lcNormalize(Points[2] - Points[1]);
|
||||
lcVector3 Plane1Normal = Up / UpLength;
|
||||
lcVector3 Plane2Normal = lcNormalize(lcCross(Up, Front));
|
||||
lcVector3 Plane2Normal = lcNormalize(lcCross(Front, Up));
|
||||
Map.Params[0] = lcVector4(Front, -lcDot(Front, Points[1]));
|
||||
Map.Params[1] = lcVector4(Points[1], UpLength);
|
||||
Map.Params[2] = lcVector4(Plane1Normal, -lcDot(Plane1Normal, Points[1]));
|
||||
|
|
Loading…
Reference in a new issue