ソースを参照

Use the size of the texture as the V scale so repeatable textures work well

pull/5463/head
Jeffery Myers 1ヶ月前
コミット
c9e879b2af
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      examples/textures/textures_textured_curve.c

+ 1
- 1
examples/textures/textures_textured_curve.c ファイルの表示

@ -190,7 +190,7 @@ static void DrawTexturedCurve(void)
Vector2 normal = Vector2Normalize((Vector2){ -delta.y, delta.x });
// The v texture coordinate of the segment (add up the length of all the segments so far)
float v = previousV + Vector2Length(delta);
float v = previousV + Vector2Length(delta) / (float)(texRoad.height * 2);
// Make sure the start point has a normal
if (!tangentSet)

読み込み中…
キャンセル
保存