[core] Add line-gradient property

Porting of https://github.com/mapbox/mapbox-gl-js/pull/6303
See the link above for the description of the feature and
its limitations).

Based on patch from @lbud (Lauren Budorick).
This commit is contained in:
Mikhail Pozdnyakov
2018-08-08 15:09:27 +03:00
parent 52275f835a
commit fb5afd34b9
36 changed files with 1897 additions and 1500 deletions

View File

@@ -116,4 +116,18 @@ LinePatternProgram::uniformValues(const RenderLinePaintProperties::PossiblyEvalu
);
}
LineGradientProgram::UniformValues
LineGradientProgram::uniformValues(const RenderLinePaintProperties::PossiblyEvaluated& properties,
const RenderTile& tile,
const TransformState& state,
const std::array<float, 2>& pixelsToGLUnits) {
return makeValues<LineGradientProgram::UniformValues>(
properties,
tile,
state,
pixelsToGLUnits,
uniforms::u_image::Value{ 0 }
);
}
} // namespace mbgl