瀏覽代碼

Use the size of the texture as the V scale so repeatable textures work well (#5463)

pull/5464/head
Jeffery Myers 1 月之前
committed by GitHub
父節點
當前提交
980e4d0ad3
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: B5690EEEBB952194
共有 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)

Loading…
取消
儲存