Skip to content

Commit

Permalink
Update shaders/star_vert.glsl
Browse files Browse the repository at this point in the history
  • Loading branch information
375gnu committed Oct 28, 2023
1 parent a9f710d commit 3ef517f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shaders/star_vert.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void main(void)
else
{
float max_br = sqrt(max(color0.r, max(color0.g, color0.b)));
float max_theta = 0.33435822702992773 * 0.2 * sqrt(max_br); // glare radius
float max_theta = 0.2 * sqrt(max_br); // glare radius
float k = 3.3e-5 * pow(max_theta, -2.5); // common constant, depending originally on star brightness
float min_theta = max_theta / (pow(k, -0.5) + 1.0);
pointSize = floor(max_theta / (sqrt(0.5 * br_limit / (k * max_br)) + 1.0) / degree_per_px);
Expand Down

0 comments on commit 3ef517f

Please sign in to comment.