Skip to content

Lights are not infinitely distant #403

@dmurdoch

Description

@dmurdoch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions