Skip to content
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

Docs: SpotLight.html #26060

Closed
wants to merge 1 commit into from
Closed

Docs: SpotLight.html #26060

wants to merge 1 commit into from

Conversation

l123wx
Copy link
Contributor

@l123wx l123wx commented May 16, 2023

The quantitative relationship between the power and intensity of spotlight is wrong

<h3>[property:Float power]</h3>
<p>
光功率<br />
在 [page:WebGLRenderer.physicallyCorrectLights physically correct] 模式中,
表示以"流明(光通量单位)"为单位的光功率。 缺省值 - *4Math.PI*。 <br /><br />
该值与 [page:.intensity intensity] 直接关联
<code>
power = intensity * 4&pi;
</code>
修改该值也会导致光强度的改变。
</p>

get power() {
// compute the light's luminous power (in lumens) from its intensity (in candela)
// by convention for a spotlight, luminous power (lm) = π * luminous intensity (cd)
return this.intensity * Math.PI;
}
set power( power ) {
// set the light's intensity (in candela) from the desired luminous power (in lumens)
this.intensity = power / Math.PI;
}

@Mugen87
Copy link
Collaborator

Mugen87 commented May 16, 2023

Closing this in favor of #26064.

The Chinese light pages are a bit outdated. Some new texts need to be translated again.

@Mugen87 Mugen87 closed this May 16, 2023
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.

2 participants