Skip to content

Conversation

@MiiBond
Copy link
Contributor

@MiiBond MiiBond commented Sep 12, 2025

This is almost identical to the previously-proposed KHR area lights extension except that it excludes "sphere" as a valid shape in favour of only flat lights. (See #1948).

Comment on lines 87 to 89
| `width` | `number` | Width of the rectangular light in meters. Must be a positive value. Required for `rect` lights, ignored for `disk` lights. | Conditional | `1.0` |
| `height` | `number` | Height of the rectangular light in meters. Must be a positive value. Required for `rect` lights, ignored for `disk` lights. | Conditional | `1.0` |
| `radius` | `number` | Radius of the disk light in meters. Must be a positive value. Required for `disk` lights, ignored for `rect` lights. | Conditional | `1.0` |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency, it might be better to follow the punctual lights schema with shape-specific properties located in nested objects.

Alternatively:

  • There might be a common property, e.g., size. The rectangular shape may then have a rect.aspectRatio property while the disk shape wouldn't need anything else.
  • All these properties could be assumed as always being 1.0 and the actual size would always be controlled by node transforms.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great call. I'll make that change.

sebavan pushed a commit to BabylonJS/Babylon.js that referenced this pull request Sep 15, 2025
Added importing support for first version of EXT_light_area extension.
KhronosGroup/glTF#2525
Copy link
Contributor

@bghgary bghgary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comments. Do we need to discuss whether this extension should be EXT or KHR?


Written against the glTF 2.0 spec.

## Overview
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it help to add a couple of pictures with an example of a rect and a disk in the real world for illustration purposes?

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

Successfully merging this pull request may close these issues.

3 participants