Clip values of campixel!
, depth_shift
, and translate!
of 2D Scenes
#2638
Labels
documentation
GLMakie
This relates to GLMakie.jl, the OpenGL backend for Makie.
rendering
typically backend specific
WGLMakie
This relates to WGLMakie.jl, the Web-based WebGL backend for Makie.
MWE and expected behaviors
According to the
scenes_and_subwindows
section in the docs, after drawing a 3D scene (with an outline)a gradient background 2D image can be added by
Then, a translation is needed to make the 2D image stay behind the 3D scene.
Results
depth_shift = 1
forimage!
, which should adjust the depth value in the clip space, has no effect, either.Workaround
A workaround I found is to adjust the
farclip
value ofcampixel!
which gives a desired plot.
But I don't exactly know why this works.
The text was updated successfully, but these errors were encountered: