Skip to content

Commit 2e376c6

Browse files
committed
Update shaders_spotlight.c
1 parent 48eac60 commit 2e376c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/shaders/shaders_spotlight.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ int main(void)
135135

136136
while ((fabs(spots[i].speed.x) + fabs(spots[i].speed.y)) < 2)
137137
{
138-
spots[i].speed.x = GetRandomValue(-400, 40)/20.0f;
139-
spots[i].speed.y = GetRandomValue(-400, 40)/20.0f;
138+
spots[i].speed.x = GetRandomValue(-400, 40)/25.0f;
139+
spots[i].speed.y = GetRandomValue(-400, 40)/25.0f;
140140
}
141141

142142
spots[i].inner = 28.0f*(i + 1);
@@ -243,7 +243,7 @@ static void ResetStar(Star *star)
243243
star->speed.x = (float)GetRandomValue(-1000, 1000)/100.0f;
244244
star->speed.y = (float)GetRandomValue(-1000, 1000)/100.0f;
245245

246-
while (!(fabs(star->speed.x) + (fabs(star->speed.y) > 1)));
246+
while (!(fabs(star->speed.x) + (fabs(star->speed.y) > 1)))
247247
{
248248
star->speed.x = (float)GetRandomValue(-1000, 1000)/100.0f;
249249
star->speed.y = (float)GetRandomValue(-1000, 1000)/100.0f;

0 commit comments

Comments
 (0)