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

Sync changes from mozilla-central gfx/wr #3862

Merged
merged 1 commit into from Feb 18, 2020
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -114,8 +114,8 @@ Fragment conic_gradient_brush_fs() {
#endif

vec2 current_dir = pos - V_CENTER;
float current_angle = atan(current_dir.y, current_dir.x) + (PI / 2 - V_ANGLE);
float offset = mod(current_angle / (2 * PI), 1.0);
float current_angle = atan(current_dir.y, current_dir.x) + (PI / 2.0 - V_ANGLE);
float offset = mod(current_angle / (2.0 * PI), 1.0);

vec4 color = sample_gradient(V_GRADIENT_ADDRESS,
offset,
@@ -105,6 +105,10 @@ const SHADERS: &[Shader] = &[
name: "brush_mix_blend",
features: BRUSH_FEATURES,
},
Shader {
name: "brush_conic_gradient",
features: GRADIENT_FEATURES,
},
Shader {
name: "brush_radial_gradient",
features: GRADIENT_FEATURES,
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.