Przeglądaj źródła

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

pull/5464/head
Jeffery Myers 1 miesiąc temu
committed by GitHub
rodzic
commit
980e4d0ad3
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      examples/textures/textures_textured_curve.c

+ 1
- 1
examples/textures/textures_textured_curve.c Wyświetl plik

@ -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)

Ładowanie…
Anuluj
Zapisz