Skip to content

Commit

Permalink
add interpolate keyword for Surface (#3541)
Browse files Browse the repository at this point in the history
add ninterpolate keyword for Surface
  • Loading branch information
SimonDanisch authored Jan 24, 2024
1 parent 67c32ce commit 20c35dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions GLMakie/src/drawing_primitives.jl
Original file line number Diff line number Diff line change
Expand Up @@ -743,8 +743,9 @@ function draw_atomic(screen::Screen, scene::Scene, plot::Surface)
end

space = plot.space

gl_attributes[:image] = img
interp = to_value(pop!(gl_attributes, :interpolate, true))
interp = interp ? :linear : :nearest
gl_attributes[:image] = Texture(img; minfilter=interp)

@assert to_value(plot[3]) isa AbstractMatrix
types = map(v -> typeof(to_value(v)), plot[1:2])
Expand Down

0 comments on commit 20c35dd

Please sign in to comment.