Skip to content

Support multiple direct light sources instead of just one primary light #1163

@Revmatek

Description

@Revmatek

Description

I believe that the ocean shader and most of the scripts are oriented around a single primary light source to generate the light on the surface of the ocean relative to the sun and underwater lighting.

It would be great to be able to add a list of direct lights for the following cases:

  • Planets with multiple suns
  • Simultaneous moon light and sun light during phased orbits
  • Sci-fi environments

Performance may be a concern but I would think that using 1 light would still be the same and more than 1 would be optional.

It would also be nice to have support for basic light sources besides direct lights. Perhaps it is possible to move away from the concept of direct light sources and list light sources in general that should be included. That way performance would not be as much of a concern because only lights you assign would be use to generate surface lighting or underwater lighting. That is more related to a separate issue though: #357

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions