Compare commits

..

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

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);