Makie - modification of lighting

I have implemented a useful visualization of 3D surface function using Makie. I can “do science” with this, but the specular highlights are too strong (especially when combined with dark, shadowy regions of the same surface; see screen grab below). The documentation doesn’t mention any way to change surface properties affecting specular reflectivity (or other values). However, in the example output of help_attributes there is the following:

  :light            => 395: "map(light)-6" = GeometryTypes.Vec{3,Float32}[Float…

At the same time, the detailed list of plot attributes does not include light and I cannot find examples of changing the light. I’d hoped modifying the light applied to render the scene might help (more light sources, or possibly ambient light).

Does anyone know if it is possible to do this?

2 Likes