[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user