File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
com.unity.render-pipelines.high-definition Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88
88
- Fixed error when undo a Reflection Probe removal in a prefab instance. (case 1244047)
89
89
- Fixed various multi-editing issues when changing Emission parameters.
90
90
- Fixed issue that prevented cubemap thumbnails from rendering (only on D3D11 and Metal).
91
+ - Fixed Microshadow not working correctly in deferred with LightLayers
91
92
92
93
### Changed
93
94
- Rejecting history for ray traced reflections based on a threshold evaluated on the neighborhood of the sampled history.
Original file line number Diff line number Diff line change @@ -195,11 +195,8 @@ float GetAmbientOcclusionForMicroShadowing(BSDFData bsdfData)
195
195
{
196
196
float sourceAO;
197
197
#if (SHADERPASS == SHADERPASS_DEFERRED_LIGHTING)
198
- // Note: In deferred pass we don't have space in GBuffer to store ambientOcclusion unless LIGHT_LAYERS is enabled
199
- // so we use specularOcclusion instead
200
- // The define LIGHT_LAYERS only exist for the GBuffer and the Forward pass. To avoid to add another
201
- // variant to deferred.compute, we use dynamic branching instead with _EnableLightLayers.
202
- sourceAO = _EnableLightLayers ? bsdfData.ambientOcclusion : bsdfData.specularOcclusion;
198
+ // Note: In deferred pass we don't have space in GBuffer to store ambientOcclusion so we use specularOcclusion instead
199
+ sourceAO = bsdfData.specularOcclusion;
203
200
#else
204
201
sourceAO = bsdfData.ambientOcclusion;
205
202
#endif
You can’t perform that action at this time.
0 commit comments