Search Issue Tracker
By Design
Votes
0
Found in [Package]
10.0.0-preview.27
Issue ID
1279209
Regression
No
[HDRP] GameObjects don't receive constant lighting with Point Light
How to reproduce:
1. Open the user's attached "Clouds.zip"
2. Open the "SampleScene" Scene
3. Double click the "Sphere" GameObject in the Hierarchy window
4. Move Scene view camera with the Move tool around the "Sphere" GameObject in the Scene view (See attached "1279209_repro.mp4")
5. Observe the "Sphere" GameObject in the Scene view
Expected result: "Sphere" GameObject receives constant lighting in the Scene view
Actual result: "Sphere" GameObject lighting fades in the Scene view
Reproducible with: 4.10.0-preview (2018.4.27f1), 7.5.1 (2019.4.11f1), 8.2.0 (2020.1.6f1), 10.0.0-preview.27 (2020.2.0b3)
Notes:
- The issue is not reproducible with the built-in pipeline
- The issue is not reproducible with URP
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- OnPostprocessAllAssets() is not called for a modified Prefab when another Asset is set Dirty in the same callback
- [Android] UIToolkit ClickEvent is fired when the device is rotated
- Compilation errors occur when "uintBitsToFloat(int)" gets used in OpenGLES
- User Reporting does not send reports when Managed Stripping Level is set to Low or higher
- Editor crashes and a window with "GetManagerFromContext: pointer to object of manager 'MonoManager' is NULL (table index 5)" error is thrown when launching a project with a corrupted library
Resolution Note:
Point and Spot Lights have a fading factor when they are too far from the camera. When the Light's distance to the camera is lesser than the fadeDistance parameter then the light does not fade (such as the gameview suggests). Starting at 90% of that distance, the fade will start and over it, the light will have no more influence on the lighting of the scene - this is what happens when you are scrolling further from the sphere (as you are also scrolling away from the Light source).
(see https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@7.4/api/UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.html#UnityEngine_Rendering_HighDefinition_HDAdditionalLightData_fadeDistance)
Only Directional Lights won't fade based on the distance to the Camera.