We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9f710d commit 3ef517fCopy full SHA for 3ef517f
shaders/star_vert.glsl
@@ -28,7 +28,7 @@ void main(void)
28
else
29
{
30
float max_br = sqrt(max(color0.r, max(color0.g, color0.b)));
31
- float max_theta = 0.33435822702992773 * 0.2 * sqrt(max_br); // glare radius
+ float max_theta = 0.2 * sqrt(max_br); // glare radius
32
float k = 3.3e-5 * pow(max_theta, -2.5); // common constant, depending originally on star brightness
33
float min_theta = max_theta / (pow(k, -0.5) + 1.0);
34
pointSize = floor(max_theta / (sqrt(0.5 * br_limit / (k * max_br)) + 1.0) / degree_per_px);
0 commit comments