USD: improve light units conversion #109795

Manually merged
Brecht Van Lommel merged 4 commits from brecht/blender:usd-light-units into main 2023-07-07 18:27:19 +02:00

4 Commits

Author SHA1 Message Date
Brecht Van Lommel 7c34688e73 Better handling of point lights, add spot light export 2023-07-07 14:59:56 +02:00
Brecht Van Lommel d417968af2 Make normalized distant lights match Karma more closely 2023-07-06 21:21:37 +02:00
Brecht Van Lommel 053fd7850f Fix wrong unnormalized disk light 2023-07-06 21:03:25 +02:00
Brecht Van Lommel f35d1a6278 USD: improve light units conversion
Use pi factor to convert from radiant flux to intensity, and fix wrong
unnormalized point/sphere light unit in Cycles.

Overall it should be much closer now for all lights. But point and distant
lights are still off and seemingly without a consistent convention in other
Hydra renderers.

Ref #109404
2023-07-06 20:08:39 +02:00