Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
11
Issue ID
1305556
Regression
No
Ambient Occlusion doesn't work when Specular Occlusion is disabled
Ambient occlusion doesn't work on HDRP Materials (Lit) or ShaderGraph materials when the Specular Occlusion is set to Off.
Repro steps:
- Create a new HDRP Material
- Make sure you have bright visible ambient lighting in your scene.
- Assign a mask map (a white gradient for example) to set the ambient occlusion of the material.
- Put the material on an object in the scene, and play with the ambient occlusion remap slider
- Notice that it changes correctly
- Disable the Specular Occlusion in the material advanced settings
- Ambient Occlusion doesn't work anymore
Alternative repro with ShaderGraph:
- Create a new Lit ShaderGraph and exposed a slider between 0 and 1 connected to the ambient occlusion block.
- Create a new Material from this ShaderGraph and play with the slider you exposed.
- Notice that nothing changes.
- When you set Specular Occlusion to "From AO" in the ShaderGraph it fixes the issue.
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
This is expected behavior