-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
DirectionalLight3D currently has no Specular property #80737
Comments
Looking at the shader code, it looks like specular is forcibly set to The value of And light specular is disabled at the Light3D level for DirectionalLight3Ds And here is where it was disabled. #45023 Reduz mentions a few properties that were removed for performance reasons, and a few properties that should be returned in follow up PRs. specular is mentioned in neither column. To me this looks like it was mistakenly removed. All the piping was left in place. I have a feeling it was partially removed during the refactor, but was ultimately not fully removed. I would just restore the specular property to DirectionalLight3Ds Changes are needed in at least two places:
|
Hey, can I take up this issue? |
I think I might've fixed the issue just through clayjohn's advice, but I can't figure out how to change the default value for it back to 1.0 (Default is 0.5 for some reason) Also am I supposed to ask beforehand for something like this? I haven't contributed here before so sorry if I acted too early |
Note: This issue was transferred from the godot_docs repository. What appeared to be an issue with the documentation turned out to be an issue with the feature itself. clayjohn has commented below a bit of background. Ultimately, the ghost documentation highlights that we removed a setting by mistake. The solution is to restore the setting.
Your Godot version: 4.1 Stable
Issue description: DirectionalLight3D missing Specular property, current documentation states this should exist
URL to the documentation page:
https://docs.godotengine.org/en/stable/tutorials/3d/lights_and_shadows.html
https://docs.godotengine.org/en/stable/tutorials/3d/global_illumination/faking_global_illumination.html
Additional information:
https://github.com/godotengine/godot-docs/blob/05fe756d9d1e6abab198da4721ba8f0407f0e45e/tutorials/3d/lights_and_shadows.rst?plain=1#L44
According to the text (from Godot Engine 4.1 - 3D Lights and Shadows, linked above) and the screenshot of common light properties above it,
DirectionalLight3D
(like Omni and Spot lights) should have aSpecular
property but currently doesn't (4.1 Stable). Not sure if this is a bug, a documentation issue or due to on going work.specular property missing from DirectionalLight3D
Due to this, currently unable to remove the specular blob from DirectionalLights when following "Godot Engine 4.1 - Faking global illumination". Which specifically mentions setting
Specular: 0.0
onDirectionalLight3D
.https://github.com/godotengine/godot-docs/blob/05fe756d9d1e6abab198da4721ba8f0407f0e45e/tutorials/3d/global_illumination/faking_global_illumination.rst?plain=1#L48
The text was updated successfully, but these errors were encountered: