-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Docs: Clarify .lights property #15318
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
Conversation
|
I didn't realize it was readonly for default materials. That's good to know. 😅 |
Why? The defaults are different. |
|
I do not think you should be updating Chinese docs. We need to be consistent. Always update them -- or never update them, and let someone else do that. |
|
FWIW my preference would be to update the structure of the Chinese docs when we can (e.g. adding empty headers or removing sections), but leave others to fill in the translations. This way at least it is easy to see where translations are missing. But probably best to get their preference on how they'd prefer to track changes, they have a hard enough task as-is.. |
Sounds good 👍 . Let me do it like this in future PRs.
It's a bit unusual to document properties in derived classes again just because they have a different value. I've never seen this in a software project. And I think in this particular case, this information is not valuable for the user. |
I very much disagree with that. When we ask another contributor to update the docs for their PR, are we going to make sure to ask them to update the structure of the Chinese docs, too? I hope not. |
|
I agree that’s not necessary, but wouldn’t say it’s an argument do discourage others from updating the Chinese docs if they choose to. |
|
Updating the chinese docs whenever possible sounds good to me. But it definitely won't scale if we start getting more languages. As per the actual issue... I can't think of any reason why |
three.js/src/renderers/WebGLRenderer.js Lines 1521 to 1540 in 8b137e5
|
|
@mrdoob Is it okay to merge this PR? I think the new description in |
|
Closing due to merge conflicts. If there is any interest in changing the description of |
|
I think it's good practice to document when a property on the base class is overwritten by a derived class, so I don't support this change. |
Documents
Material.lightsjust once inMaterialand not in other documentation pages. Also added a note so users consider this property as read-only except forShaderMaterialandRawShaderMaterial.Fixed #13896