浏览代码

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 密钥 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)

正在加载...
取消
保存