Search Issue Tracker

Fixed

Fixed in 2.1.0

Votes

0

Found in [Package]

2.1.0

Issue ID

SPLB-95

Regression

No

Spline Loft Behavior does not generate correct normals for geometry

Package: Splines

-

LoftRoad generates normals that onluy face up. In the Loft function, normals are assigned Vector3.up instead of the up vector from the spline.

Change it to:

m_Positions.Add(pos - (tangent * w));
m_Positions.Add(pos + (tangent * w));
m_Normals.Add(up);
m_Normals.Add(up);
m_Textures.Add(new Vector2(0f, t * m_TextureScale));
m_Textures.Add(new Vector2(1f, t * m_TextureScale));

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.