Search Issue Tracker
By Design
Votes
0
Found in
2020.3.38f1
2021.3.6f1
2022.1.13f1
2022.2.0b4
2023.1.0a5
2023.2.0a1
Issue ID
UUM-12415
Regression
No
GameObject renders with the 'LIGHTPROBE_SH' keyword when the Light Probes are set to ‘off’ in the Mesh Renderer Component
Reproduction steps:
1. Open the attached ‘Bug Test’ project
2. Open the ‘test’ Scene
3. Observe the ‘Sphere’ GameObject, note that Light Probes are set to ‘off’ in the Mesh Renderer Component
4. Go to the ‘Window → Analysis -> Frame Debugger’
5. Observe the ‘RenderDeffered.GBuffer’ Render Target’s Keywords
Expected result: No ‘LIGHTPROBE_SH’ Keyword is used
Actual result: The ‘LIGHTPROBE_SH’ Keyword is present
Reproducible with: 2020.3.38f1, 2021.3.6f1, 2022.1.13f1, 2022.2.0b4, 2023.1.0a5
Reproduced on: MacOS 11.6 (Intel)
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
- "Browse" button for Xcode in the "Build Profiles" window is too big
- USS styles fail to inherit correctly when contentContainer is overridden in a custom control
- Copying and pasting Animator Transitions leads to unexpected behaviour
- "ShaderGraph" misses a space in the "Project Settings" section
- UI Builder inspector’s checkbox fields can be activated when clicking anywhere in the value field
Resolution Note:
This is working as designed. The reason you are still seeing the LIGHTPROBE_SH keyword set when the Sphere object is rendered is because the object is sampling the global Ambient Probe, see this page for more info https://docs.unity3d.com/ScriptReference/RenderSettings-ambientProbe.html.
If you don't want any contribution from the ambient probe, you can go to the Lighting window, set Environment Lighting Source to Color and set the color to black.
It is also possible to force it to black in the player by assigning a cleared SphericalHarmonicsL2 (https://docs.unity3d.com/ScriptReference/Rendering.SphericalHarmonicsL2.Clear.html) to RenderSettings.ambientProbe.