Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inset box shadow fixes #285

Merged
merged 3 commits into from Jun 9, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

Fix inset box shadows with blur

In commit d570574 ("Rework box shadows to support border radii
properly ..."), the conditional of the box shadow fragment shader that
handles inset shadows was lost. Restore it.
  • Loading branch information
anderco committed Jun 7, 2016
commit fe812f76cbcdf422cc9d21b5a5d8ece8ec17684e
@@ -141,6 +141,8 @@ void main(void) {
vec2 radii = vBorderRadii.xy;
float sigma = vBlurRadius / 2.0;
float value = color(pos, p0Rect, p1Rect, radii, sigma);
SetFragColor(vec4(vColor.rgb, max(value, 0.0)));

value = max(value, 0.0);
SetFragColor(vec4(vColor.rgb, vColor.a == 0.0 ? 1.0 - value : value));
}

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.