Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lights are not infinitely distant #403

Open
dmurdoch opened this issue Jan 12, 2024 · 0 comments
Open

Lights are not infinitely distant #403

dmurdoch opened this issue Jan 12, 2024 · 0 comments

Comments

@dmurdoch
Copy link
Owner

The help page for light3d describes some lights specified by direction as being infinitely distant, and others specified by position. However, that is not how they are currently implemented.

Currently all lights are rendered as if they are at a finite distance. This is most visible with fov = 0, as shown in #401 . With a positive fov, the finite position is moved away from the scene, but it is never infinite.

This may be unavoidable to some extent. I think the old OpenGL 1.2 used in rgl only supports one kind of lighting: finite or infinite, not separate settings for each light. (I'm not sure about that.) But lighting using shaders as in rglwidget() or the eventual update to rgl would allow a mixture of types.

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

No branches or pull requests

1 participant