Skip to content

Commit

Permalink
fix linelen transform
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer committed Feb 9, 2024
1 parent 34237f7 commit 382d375
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion WGLMakie/src/lines.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 382d375

Please sign in to comment.