I'm using JavaScript. The derivatives correspond to the tangent lines, not the normals. Once normalized into a unit vector, they plug right in to the transformation matrix without needing extra effort to convert between degrees, radians, sines, cosines, etc.
The only part I don't get is how to also flip the bricks on their sides so the studs face outward.
In the attachment you can see the appearance I'm aiming for.
The only part I don't get is how to also flip the bricks on their sides so the studs face outward.
In the attachment you can see the appearance I'm aiming for.