-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor: Add RectAreaLight #16251
Editor: Add RectAreaLight #16251
Conversation
It seems the PR has a merge conflict... |
To get |
9cd618a
to
38a5d8e
Compare
38a5d8e
to
2704ce2
Compare
|
||
// RectAreaLightHelper was designed to work only if it is a child of its light. | ||
// Since that cannot be done in the edtior, the updateMatrixWorld function is overwritten to apply the matrix calculations to the light. | ||
THREE.RectAreaLightHelper.prototype.updateMatrixWorld = function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RectAreaLightHelper was designed to work only if it is a child of its light.
@mrdoob @WestLangley Do you know the reasons for this? I've checked the history of RectAreaLightHelper
but found nothing.
Other users have already run into issues because of how RectAreaLightHelper
works (see https://discourse.threejs.org/t/rectarealight-remaining-at-0-0-0/10057). I think it would be less confusing if adding the helper to the light is not required (similar to e.g. PointLightHelper
). This modification here would not be necessary then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know the reasons for this? I've checked the history of RectAreaLightHelper but found nothing.
I expect all light helpers will be changed to match the behavior of RectAreaLightHelper
once lights are controlled by the quaternion.
Since the editor is now module based (#18201), a lot of code has changed. It's better to implement this feature from scratch. |
See #16234