Skip to content

silx.gui.plot3d: Fixed lighting of Spheres#4491

Open
t20100 wants to merge 3 commits intomainfrom
fix-sphere-lighting
Open

silx.gui.plot3d: Fixed lighting of Spheres#4491
t20100 wants to merge 3 commits intomainfrom
fix-sphere-lighting

Conversation

@t20100
Copy link
Member

@t20100 t20100 commented Mar 3, 2026

This PR fixes the lighting of sphere impostors. As opposed to other 3D primitives, the lighting is not performed in the object frame of reference but in camera space.
It looks to work fine with directional light. There is probably some issues if we add a spot light one day.

related to issue #4351 and PR #4483

attn @abmajith, review welcomed!

@t20100 t20100 added this to the 3.0.0 milestone Mar 3, 2026
@t20100 t20100 marked this pull request as draft March 3, 2026 15:25
@t20100 t20100 marked this pull request as ready for review March 3, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant