# Fixing Makie light position after moving the camera

**URL:** <https://discourse.julialang.org/t/fixing-makie-light-position-after-moving-the-camera/75514>\
**Category:** General Usage\
**Tags:** makie, glmakie\
**Created:** [January 31, 2022, 3:37pm UTC](https://discourse.julialang.org/t/fixing-makie-light-position-after-moving-the-camera/75514 "2022-01-31T15:37:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sijo](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@sijo](https://discourse.julialang.org/u/sijo)\
**Post date:** [January 31, 2022, 3:37pm UTC](https://discourse.julialang.org/t/fixing-makie-light-position-after-moving-the-camera/75514/1 "2022-01-31T15:37:11Z")

</div>

Using Makie 0.16.3, the light look OK with the default camera position:

```julia
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))

```

 ![good](https://global.discourse-cdn.com/julialang/original/3X/1/1/11caf0c7bcf4553c6da24ce5b948aa93d2988aa3.jpeg)

However when I move the camera behind, the lighting is bad:

```julia
update_cam!(a.scene, (-0.5, -2, -2), (0.5, -0.5, -0.5))

```

 ![bad2](https://global.discourse-cdn.com/julialang/original/3X/d/d/ddc68384af8c0ce658b52237a72b10fb58b1825c.png)

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
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`.
