diff --git a/WGLMakie/src/lines.jl b/WGLMakie/src/lines.jl index a60551be9e6..16b13eb6e27 100644 --- a/WGLMakie/src/lines.jl +++ b/WGLMakie/src/lines.jl @@ -90,7 +90,9 @@ function serialize_three(scene::Scene, plot::Union{Lines, LineSegments}) # TODO: in Javascript if plot isa Lines && to_value(linestyle) isa Vector cam = Makie.parent_scene(plot).camera - pvm = lift(*, plot, cam.projectionview, uniforms[:model]) + pvm = lift(plot, cam.projectionview, cam.pixel_space, plot.space, uniforms[:model]) do _, _, space, model + return Makie.space_to_clip(cam, space, true) * model + end attributes[:lastlen] = map(plot, points_transformed, pvm, cam.resolution) do ps, pvm, res output = Vector{Float32}(undef, length(ps))