We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9a456e commit 980e4d0Copy full SHA for 980e4d0
examples/textures/textures_textured_curve.c
@@ -190,7 +190,7 @@ static void DrawTexturedCurve(void)
190
Vector2 normal = Vector2Normalize((Vector2){ -delta.y, delta.x });
191
192
// The v texture coordinate of the segment (add up the length of all the segments so far)
193
- float v = previousV + Vector2Length(delta);
+ float v = previousV + Vector2Length(delta) / (float)(texRoad.height * 2);
194
195
// Make sure the start point has a normal
196
if (!tangentSet)
0 commit comments