mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-29 10:19:18 -05:00
Update shaders_spotlight.c
This commit is contained in:
@ -135,8 +135,8 @@ int main(void)
|
|||||||
|
|
||||||
while ((fabs(spots[i].speed.x) + fabs(spots[i].speed.y)) < 2)
|
while ((fabs(spots[i].speed.x) + fabs(spots[i].speed.y)) < 2)
|
||||||
{
|
{
|
||||||
spots[i].speed.x = GetRandomValue(-400, 40)/20.0f;
|
spots[i].speed.x = GetRandomValue(-400, 40)/25.0f;
|
||||||
spots[i].speed.y = GetRandomValue(-400, 40)/20.0f;
|
spots[i].speed.y = GetRandomValue(-400, 40)/25.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
spots[i].inner = 28.0f*(i + 1);
|
spots[i].inner = 28.0f*(i + 1);
|
||||||
@ -243,7 +243,7 @@ static void ResetStar(Star *star)
|
|||||||
star->speed.x = (float)GetRandomValue(-1000, 1000)/100.0f;
|
star->speed.x = (float)GetRandomValue(-1000, 1000)/100.0f;
|
||||||
star->speed.y = (float)GetRandomValue(-1000, 1000)/100.0f;
|
star->speed.y = (float)GetRandomValue(-1000, 1000)/100.0f;
|
||||||
|
|
||||||
while (!(fabs(star->speed.x) + (fabs(star->speed.y) > 1)));
|
while (!(fabs(star->speed.x) + (fabs(star->speed.y) > 1)))
|
||||||
{
|
{
|
||||||
star->speed.x = (float)GetRandomValue(-1000, 1000)/100.0f;
|
star->speed.x = (float)GetRandomValue(-1000, 1000)/100.0f;
|
||||||
star->speed.y = (float)GetRandomValue(-1000, 1000)/100.0f;
|
star->speed.y = (float)GetRandomValue(-1000, 1000)/100.0f;
|
||||||
|
|||||||
Reference in New Issue
Block a user