4 Commits

Author SHA1 Message Date
Frost
99a559fb04 Add frame color/gloss to the default profiles 2024-10-11 10:49:54 +02:00
Frost
2bd9e0f59e Add frame gloss setting
Lets you turn off the bright reflections.
2024-10-11 10:49:54 +02:00
Frost
6754a0b949 Add frame color setting
It's saved in the profile, and defaults to white.
2024-10-11 10:49:54 +02:00
Frost
26a4f33dc5 Add reflections to frame for better glossiness
I mean, it's how it works in the real world; it's added to the frame's base color, not occluded by the frame.
2024-10-11 10:49:54 +02:00
2 changed files with 3 additions and 3 deletions

View File

@@ -87,7 +87,7 @@ ShaderEffect {
float alpha = 0.0; float alpha = 0.0;
float frameShadow = max2(positiveLog(-coords * frameShadowCoeff + vec2(1.0)) + positiveLog(coords * frameShadowCoeff - (vec2(frameShadowCoeff) - vec2(1.0)))); float frameShadow = max2(positiveLog(-coords * frameShadowCoeff + vec2(1.0)) + positiveLog(coords * frameShadowCoeff - (vec2(frameShadowCoeff) - vec2(1.0))));
frameShadow = clamp(sqrt(frameShadow), 0.0, 1.0); frameShadow = max(sqrt(frameShadow), 0.0);
color *= frameShadow; color *= frameShadow;
alpha = sum2(1.0 - step(vec2(0.0), coords) + step(vec2(1.0), coords)); alpha = sum2(1.0 - step(vec2(0.0), coords) + step(vec2(1.0), coords));
alpha = clamp(alpha, 0.0, 1.0); alpha = clamp(alpha, 0.0, 1.0);

View File

@@ -16,11 +16,11 @@
<screenshots> <screenshots>
<screenshot type="default"> <screenshot type="default">
<caption>Default amber look</caption> <caption>Default amber look</caption>
<image width="1022" height="791">https://i.imgur.com/NUfvnlu.png</image> <image width="1022" height="791">https://camo.githubusercontent.com/2443e662e95733ba6ae331f391f6ec036d1ee7fd/687474703a2f2f692e696d6775722e636f6d2f4e5566766e6c752e706e67</image>
</screenshot> </screenshot>
<screenshot> <screenshot>
<caption>Apple II look</caption> <caption>Apple II look</caption>
<image width="1024" height="796">https://i.imgur.com/MMmM6Ht.png</image> <image width="1024" height="796">https://camo.githubusercontent.com/44a19842d532555c7b02bf6b4b4684add9edf18c/687474703a2f2f692e696d6775722e636f6d2f4d4d6d4d3648742e706e67</image>
</screenshot> </screenshot>
</screenshots> </screenshots>