using clang-format-16

and a bit more comments
and a minor adjustment
This commit is contained in:
Justin Garza
2025-01-21 19:46:15 -05:00
parent 29978ea87f
commit e90353b0c5
6 changed files with 35 additions and 31 deletions
+3
View File
@@ -367,6 +367,7 @@ vec4 getStars(vec2 starUV, float aspect, float progress, float oColorAlpha)
//each star in each ring
for (float s = 0.0; s < uStarCount; ++s)
{
//this returns a Star
float a5ps = getStar(
starUV,
vec2( sin(progress * uRingRotation * 6.28 + (s*(6.28/uStarCount))) * aspect * 0.33 , y), //position (x, y)
@@ -379,6 +380,8 @@ vec4 getStars(vec2 starUV, float aspect, float progress, float oColorAlpha)
// //put the star in back or the front of the window
float depth = cos(progress * uRingRotation * 6.28 + (s*(6.28/uStarCount)) );
//if we want the star behind or infront of the window
if (depth < 0.0)
{
result = alphaOver(result,getStarColor(y,a5ps));