crest icon indicating copy to clipboard operation
crest copied to clipboard

Support multiple direct light sources instead of just one primary light

Open Revmatek opened this issue 1 year ago • 0 comments

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: https://github.com/wave-harmonic/crest/issues/357

Revmatek avatar Jan 01 '25 14:01 Revmatek