Преглед на файлове

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

pull/5464/head
Jeffery Myers преди 4 седмици
committed by GitHub
родител
ревизия
980e4d0ad3
No known key found for this signature in database 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)

Зареждане…
Отказ
Запис