Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ namespace DynamicCubemaps
skySpecular = Color::IrradianceToLinear(max(0, fullSample - envSample)) * SharedData::iblSettings.SkyIBLScale;
# if defined(SKYLIGHTING)
skySpecular *= skylightingSpecular;
envSpecular *= skylightingSpecular;
# endif
} else {
// Mode 0/1: IBL ratio-based
Expand All @@ -81,6 +82,7 @@ namespace DynamicCubemaps
skySpecular = Color::IrradianceToLinear(max(0, fullSample - envSample)) * SharedData::iblSettings.SkyIBLScale;
# if defined(SKYLIGHTING)
skySpecular *= skylightingSpecular;
envSpecular *= skylightingSpecular;
# endif
}

Expand Down Expand Up @@ -179,6 +181,7 @@ namespace DynamicCubemaps
skySpecular = Color::IrradianceToLinear(max(0, fullSample - envSample)) * SharedData::iblSettings.SkyIBLScale;
# if defined(SKYLIGHTING)
skySpecular *= skylightingSpecular;
envSpecular *= skylightingSpecular;
# endif
} else {
// Mode 0/1: IBL ratio-based
Expand All @@ -187,6 +190,7 @@ namespace DynamicCubemaps
skySpecular = Color::IrradianceToLinear(max(0, fullSample - envSample)) * SharedData::iblSettings.SkyIBLScale;
# if defined(SKYLIGHTING)
skySpecular *= skylightingSpecular;
envSpecular *= skylightingSpecular;
# endif
}

Expand Down
2 changes: 2 additions & 0 deletions package/Shaders/DeferredCompositeCS.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ void SampleSSGISpecular(uint2 pixCoord, sh2 lobe, inout float ao, out float3 il,
skySpecular = Color::IrradianceToLinear(max(0, fullSample - envSample)) * SharedData::iblSettings.SkyIBLScale;
# if defined(SKYLIGHTING)
skySpecular *= skylightingSpecular;
envSpecular *= skylightingSpecular;
# elif defined(INTERIOR)
skySpecular = 0;
# endif
Expand All @@ -227,6 +228,7 @@ void SampleSSGISpecular(uint2 pixCoord, sh2 lobe, inout float ao, out float3 il,
skySpecular = Color::IrradianceToLinear(max(0, fullSample - envSample)) * SharedData::iblSettings.SkyIBLScale;
# if defined(SKYLIGHTING)
skySpecular *= skylightingSpecular;
envSpecular *= skylightingSpecular;
# elif defined(INTERIOR)
skySpecular = 0;
# endif
Expand Down
Loading