Using Makie 0.16.3, the light look OK with the default camera position:
using GLMakie
f, a, p = meshscatter(0:1, 0:1, 0:1, color=[:blue, :green], markersize=0.3)
update_cam!(a.scene, (1.5, 3, 3), (0.5, -0.5, -0.5))
However when I move the camera behind, the lighting is bad:
update_cam!(a.scene, (-0.5, -2, -2), (0.5, -0.5, -0.5))
This is from a screenshot, it looks fine if I save to PNG with save
. And indeed as far as I can tell the light is at the expected position:
julia> a.scene.lights[1]
PointLight(Observable{Vec{3, Float32}} with 0 listeners. Value:
Float32[-0.5, -2.0, -2.0], Observable{ColorTypes.RGB{Float32}} with 0 listeners. Value:
RGB{Float32}(1.0f0,1.0f0,1.0f0))
so do I need to do anything to fix the lighting in GLMakie?
I tried updatecam!(f.scene)
and updatecam!(a.scene)
but in both cases I get UndefVarError: limits not defined
.