Skip to content

Commit 9ef3a11

Browse files
sebastienlagardeanisunityremi-chapelainJulienIgnace-UnityJordanL8
authored
[7.x.x] Merge hd/staging [Skip CI] (#1147)
* [7.x.x Backport] Fixed a weird behavior in the scalable settings drawing when the space becomes tiny (1212045). (#6507) * - Fixed a weird behavior in the scalable settings drawing when the space becomes tiny (1212045). * Small fix to avoid text overlapping too much Co-authored-by: Remi Chapelain <[email protected]> * Fixed an usage of a a compute buffer not bound (1229964) (#28) Co-authored-by: Anis <[email protected]> * Removed wrongly serialized fields in StaticLightingSky (#6441) * Fix issues in the post process system with RenderTexture being invalid in some cases. Causing rendering problems. #6480 * Update PostProcessSystem.cs * Fixed an issue where changing the default volume profile from another inspector would not update the default volume editor. #6493 * Hdrp/docs/glossary f number (#6523) * Update Glossary.md * Update Glossary.md * Clamp probes compression factor to 0 (#19) * path validation when creating new volume profile (#36) * [Backport 7.x.x] Fix various leaks in HDRP (#120) * Fixed a number of leak in HDRP # Conflicts: # com.unity.render-pipelines.high-definition/Runtime/Lighting/Shadow/HDShadowManager.cs # com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Utility/HDUtils.cs * Update changelog * [7.x.x backport] Follow references when deleting unloading unused assets on shader graph save (case 1230996) (#128) * Follow references when unloading unneeded assets * changelog Co-authored-by: sebastienlagarde <[email protected]> * [7.x.x Backport] Fixed an issue with the specularFGD term being used when the material has a clear coat (lit shader). (#21) * Fixed an issue with the specularFGD term being used when the material has a clear coat (lit shader). * update ssr screenshot Co-authored-by: sebastienlagarde <[email protected]> * d Fix MSAA resolve when there is no motion vectors #1 * Fix issues causing planar probes to be broken with multiple cameras in the scene #4 * Pospow and SG triplanar fix #40 * Hdrp/fix/custom pass msaa rendering info #42 * Added disocclusion and ghosting to the glossary (#75) * Update the scripting API for FrameSettings, FrameSettingsOverrideMask and IBitArray (#110) * fix switch shader compilation (#111) * Update SceneViewDrawMode.cs (#118) * Fix culling of reflection probes that change position #121 * Fix null reference when processing light probe #131 * Fix black screen in XR when HDRP package is present but not used #137 * Fix default volume profile collapse #138 * Fix for white flash happening when changing lighting condition (like teleport) #140 * Added baked GI rp support caveat and made setting shadow filter quality clearer for deferred high. (#145) * Update AxF-Shader.md (#152) * Bind missing buffer #159 * [Backport 7.x.x] Diffusion Profile and Material references in HDRP materials are now correctly exported to unity packages. (#179) * Added external references inside a material to diffusion profiles and materials in order to handle Material export to a package correctly. # Conflicts: # com.unity.render-pipelines.high-definition/Editor/Material/PBR/HDPBRLit.cs * Update changelog * Catch and handle NRefactory parser exceptions #6392 * [7.x.x backport] Fix quality settings UI and shadow mask UI #122 (#123) * Update HDRenderPipeline.cs * Update HDRenderPipeline.cs * Update HDRenderPipeline.cs * Update CHANGELOG.md * fix typo * fix typo 2 * Fixed the indirect diffuse texture not being ignored when it should (ray tracing disabled). (#284) * [7.x.x Backport] Fix pre/post pass sg properties #82 (#85) * Fix depth pre/post passes not correctly enabled when switching shaders on the material # Conflicts: # com.unity.render-pipelines.high-definition/Editor/Material/Lit/ShaderGraph/HDLitMasterNode.cs # com.unity.render-pipelines.high-definition/Editor/Material/Unlit/HDShaderGUI.cs # com.unity.render-pipelines.high-definition/Editor/ShaderGraph/HDSubShaderUtilities.cs * Hide prepass and postpass in the material UI # Conflicts: # com.unity.render-pipelines.high-definition/Editor/Material/UIBlocks/SurfaceOptionUIBlock.cs Co-authored-by: sebastienlagarde <[email protected]> * Fixed a performance issue with stochastic ray traced area shadows. (#306) Co-authored-by: sebastienlagarde <[email protected]> * [Backport 7.x.x] Updated raytracing async compute warning. (#304) * Made more explicit the warning about raytracing and asynchronous compute. Also fixed the condition in which it appears. * Update changelog Co-authored-by: sebastienlagarde <[email protected]> * [Backport 7.x.x] Fixed a null ref exception in static sky when the default volume profile is invalid. (#303) * Fixed a null ref exception in static sky when the default volume profile is invalid. * Update changelog * [Backport 7.x.x] Fixed an error about procedural sky being logged by mistake. (#307) * Fixed an error about procedural sky being logged by mistake. * Update changelog Co-authored-by: sebastienlagarde <[email protected]> * [Backport 7.x.x] Fix flickering lighting in the scene and game view when lookdev is open. (#379) * Fixed flickering of the game/scene view when lookdev is running. * Update changelog * [7.x.x Backport] Fix issue with ambient probe not being correct with OnEnable/OnDemand probes (#317) * render until ambient probe is ready * remove comment * changelog * [Backport 7.x.x] Fixed some gcalloc in the debug window (#464) * Fixed some GCAlloc in the debug window # Conflicts: # com.unity.render-pipelines.high-definition/Runtime/Debug/VolumeDebug.cs * Update changelog * [Backport 7.x.x] Hdrp/small ui update (#466) * Removed logic in the UI to disable parameters for contact shadows and fog volume components as it was going against the concept of the volume system. # Conflicts: # com.unity.render-pipelines.high-definition/Editor/Lighting/Shadow/ContactShadowsEditor.cs # com.unity.render-pipelines.high-definition/Editor/Sky/AtmosphericScattering/FogEditor.cs * update changelog * [Backport 7.x.x] PBR Sky renderer now shares its internal precomputation table between different instances. (#482) * PBR Sky renderer now shares its internal precomputation table between different instances. # Conflicts: # com.unity.render-pipelines.high-definition/Runtime/Sky/PhysicallyBasedSky/PhysicallyBasedSkyRenderer.cs * Doc update * Update changelog * [Backport 7.x.x] New tooltip for camera background and fixed exposure when switching the background mode. (#480) * Put more information in Camera background type tooltip and fixed inconsistent exposure behavior when changing bg type. # Conflicts: # com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Camera/HDCamera.cs * Update changelog * [Backport 7.x.x] Fixed asset preview being rendered white because of static lighting sky. (#479) * Fixed an issue where asset preview could be rendered white because of static lighting sky. Also fixed an issue where static lighting was not updated when removing the static lighting sky profile. # Conflicts: # com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.cs * Update changelog * Changed UI name, tooltip, and doc for maximum decals on screen (#232) Implements feedback from https://fogbugz.unity3d.com/f/cases/1189618/ * Update Custom-Post-Process.md (#233) * Update HDRP-Features.md (#235) * Hdrp/reflection probe scale perf #252 * HD: Switch to 1920x1080 default standalone resolution (#279) Well, the default is "fullscreen desktop resolution" anyway, so this does not change anything at default settings. But, if user unchecks the "default native fullscreen", then it was going into 1024x768 on Standalone platform. Which was the most popular resolution back in year 2005. In year 2019, the 1920x1080 is the most popular, so make that the default. See also: https://ono.unity3d.com/unity/unity/pull-request/105219/_/desktop/default-res (moved https://github.cds.internal.unity3d.com/unity/com.unity.template-hd/pull/33 to this new repo) * Makes sure quaternion is normalized and valid before converting to ma… #331 * Fix cookie srgb #297 * Updated forward and deferred rendering definitions (#350) * Update Forward-And-Deferred-Rendering.md * Update Forward-And-Deferred-Rendering.md * Update Light-Component.md (#357) * Hd/add layer modification on generated emissive mesh for area light #364 * Update Look-Dev-Environment-Library.md (#365) * Update Volumetric-Lighting.md (#402) Fixes https://fogbugz.unity3d.com/f/cases/1238592 * Hd/fix nullref while removing decal component #416 * Fix issue with Uber Post process shader when alpha is enabled #422 * Fix the bug (#430) * Fix issue causing not all baked reflection probes to be deleted #441 * Updated Decal Projector doc (#477) Updated Limitations section and added a disclaimer about decal shader stripping. * Look Dev docs refactor 2 #484 * [7.x.x Backport] Fix issue with corrupted values with Layer Lit when using multiply mode for vertex color (#425) * Saturate vertex color to avoid negative values. * changelog Co-authored-by: sebastienlagarde <[email protected]> * Fix Motion Vectors written by transparent when rendering with MSAA #315 * Fix issue with the resolve of motion vectors (#421) * fix issue with ShowPrePassAndPostPass * fix compilation issue in rendergraph * Fixed null reference exception in LookDev when setting the SRP to None #447 * Check reflection probe null pointer before use. (case 1244047) #456 * Remove max atlas probe alloc size in HDRP asset (#458) * Fixed max alloc planar size not taking in account the max cache size * Removed the max cache clamp on texture atlases * Fix few multi-editing issues with Emission UI #473 * Re-enable cubemap thumbnail gen only for d3d11 #487 * Hd/fix undo environmentlibrary lookdev #490 * Added system requirements and frame settings api docs (#510) * Added system requirements and frame settings api doc * Update System-Requirements.md Co-authored-by: sebastienlagarde <[email protected]> * hide exposure compensation for fixed exposure (#535) * hide exposure compensation for fixed exposure * Update PostProcessSystem.cs * [9.x.x] Fix Microshadow not working properly with LightLayers enabled in deferred #522 * Use path relative to package for depth of field #523 * Fix taaFrameIndex and restore TAA tests for XR #534 * Fix an issue in reading the gbuffer for ray traced subsurface scattering (#538) * fix DXR manifest * update reference screenshots * [Backport 7.x.x] Fixed an issue where manipulating the color wheels in a volume component would reset the cursor every time. (#988) * Fixed an issue where manipulating the color wheels in a volume component would reset the cursor every time. * Update changelog * [Backport 7.x.x] Fixed an issue where static sky lighting would not be updated for a new scene until it's reloaded at least once. (#990) * Fixed an issue where static sky lighting would not be updated for a new scene until it's reloaded at least once. # Conflicts: # com.unity.render-pipelines.high-definition/Runtime/Sky/SkyManager.cs * Update changelog * [Backport 7.x.x] Add defines guards around shadows hlsl files (#1091) * Add guards to shadow includes # Conflicts: # com.unity.render-pipelines.high-definition/Runtime/Lighting/Shadow/HDShadowAlgorithms.hlsl * changelog * [Backport 7.x.x] Fix issue with light layers > 7 in the deferred path (#1093) * Mask layers to consider only the supported 8 bits * changelog Co-authored-by: sebastienlagarde <[email protected]> * [Backport 7.x.x] Fix decal being duplicated in prefab isolation mode. (#1103) * Fixed decals being duplicated in prefab isolation mode. * Fix decals in the player. * Update changelog * Revert "[Backport 7.x.x] Fix decal being duplicated in prefab isolation mode. (#1103)" This reverts commit 5e5ecd9. * Update CHANGELOG.md * Hdrp/docs/volumetric lighting format fix (#628) * Updated volumetric lighting and subsurface scattering docs * Update Override-Diffusion-Profile.md * Adds mention of fidelityfx-cas as requested by AMD (#629) * Update Light-Component.md (#682) * Fix transparent movec scene view #698 * Update HDRP-Camera.md (#706) * Update Reflection-Probe (#790) * Update Reflection-Probe.md * Update Reflection-Probe.md Co-authored-by: sebastienlagarde <[email protected]> * Fix reflection probe framesettings override #796 * Workaround for GetKernelThreadGroupSizes returning wrong data #760 * Sanitize transparent motion vectors setting #761 * Fix issue with blocky artifacts when decals affecting metallic are applied on specular color workflow #823 * Force post process parent setting to be before child settings #799 * Fixed logic of test on presence of HDRP asset that would wrongly trigger (#824) a warning message when not in batch mode. * Fix warning in HDAdditionalLightData OnValidate #885 * Revert "Fix warning in HDAdditionalLightData OnValidate #885" This reverts commit 1798e28. * Fix warning in HDAdditionalLightData OnValidate #885 * Fix warning in HDAdditionalLightData OnValidate #885 - fix merge issue * Editing volumes via script doc (#884) * Added Volumes API doc * Update Volumes-API.md * Changed terminology back to Volume Override * Added terminology disclaimer * Fix message for metal and ao (#859) * Update HDR information. Also updated format and links. (#853) * Fix issue with the blue line of prefab modifications for Volume mode #860 * Recompute FOV when generating PixelCoord To WorldSpace View Direction Matrix #865 * Rename h to hlsl * Change extensions of CAS includes from h to hlsl #961 * Fix SSAO with double sided material and normal mode to none #1043 * fix typo in the Render Pipeline Wizard #1037 * Fix emissive mesh layer mask behaviour #1062 * Fix for area light baked data not updating when changing the gizmo #1075 * Fixed an error when switch area light shape to disk while an emissive… #1112 * Have the PBR Sky not render black when below horizon #1116 * Fix area light gizmo not updating engine side light v2 #1156 * Fix XR single-pass macros in tessellation shaders #1160 * Update Override-Micro-Shadows.md (#1236) * Added disclaimer to volumes (#1247) * Fix XR Display providers not getting zNear and zFar updated on them. #1269 * Moved requirements in toc to make it consistent with URP/VFX #1352 * Docs quality fixes #1445 * Added enable Volume snippet #1477 * Update Volume-Override-Enable-Override.md * Porting console fixes to staging (#699) * Fix some NaNs issues on consoles - fix * [7.x.x Backport] Fix exposure white flash when enabling SSR (#845) * inform postprocess * Changelog Co-authored-by: sebastienlagarde <[email protected]> * [7.x.x Backport] Fix depth pyramid issues with dynamic resolution (#849) * Port * changelog Co-authored-by: sebastienlagarde <[email protected]> * [Backport 7.x.x] Fixed Look Dev with Light Theme (#1101) * Fixed an issue where opening the look dev window with the light theme would make the window blink and eventually crash unity. * Update changelog Co-authored-by: sebastienlagarde <[email protected]> * [Backport 7.x.x] Fixed a serialization issue, preventing quality level parameters to undo/redo and update scene view on change. (#1104) * Fixed a serialization issue, preventing quality level parameters to undo/redo and update scene view on change. * Fixed issue when using Custom * Update changelog Co-authored-by: sebastienlagarde <[email protected]> * [Backport 7.x.x] Fixed an issue where look dev lighting would go black when a new scene is loaded. (#1321) * Fixed an issue where look dev lighting would go black when a new scene is loaded. * Update changelog Co-authored-by: sebastienlagarde <[email protected]> Co-authored-by: anisunity <[email protected]> Co-authored-by: Remi Chapelain <[email protected]> Co-authored-by: Anis <[email protected]> Co-authored-by: JulienIgnace-Unity <[email protected]> Co-authored-by: JordanL8 <[email protected]> Co-authored-by: FrancescoC-unity <[email protected]> Co-authored-by: Adrien de Tocqueville <[email protected]> Co-authored-by: slunity <[email protected]> Co-authored-by: Antoine Lelievre <[email protected]> Co-authored-by: Remi Slysz <[email protected]> Co-authored-by: Pavlos Mavridis <[email protected]> Co-authored-by: Fabien Houlmann <[email protected]> Co-authored-by: victor <[email protected]> Co-authored-by: fredericv-unity3d <[email protected]> Co-authored-by: Aras Pranckevičius <[email protected]> Co-authored-by: Emmanuel Turquin <[email protected]> Co-authored-by: skhiat <[email protected]> Co-authored-by: FrancescoC-Unity <[email protected]> Co-authored-by: robinb-u3d <[email protected]>
1 parent 7769805 commit 9ef3a11

File tree

86 files changed

+500
-254
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+500
-254
lines changed

com.unity.render-pipelines.core/Editor/LookDev/DisplayWindow.cs

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public interface IViewDisplayer
4242
/// <summary>Callback on update requested</summary>
4343
event Action OnUpdateRequested;
4444
}
45-
45+
4646
partial class DisplayWindow : EditorWindow, IViewDisplayer
4747
{
4848
static partial class Style
@@ -82,7 +82,7 @@ internal static readonly (Texture2D icon, string tooltip) k_LayoutStackIcon =
8282
internal const string k_CameraMenuSync1On2 = "Align Camera 1 with Camera 2";
8383
internal const string k_CameraMenuSync2On1 = "Align Camera 2 with Camera 1";
8484
internal const string k_CameraMenuReset = "Reset Cameras";
85-
85+
8686
internal const string k_EnvironmentSidePanelName = "Environment";
8787
internal const string k_DebugSidePanelName = "Debug";
8888

@@ -127,7 +127,7 @@ internal static readonly (Texture2D icon, string tooltip) k_LayoutStackIcon =
127127
Label m_NoEnvironment2;
128128

129129
Image[] m_Views = new Image[2];
130-
130+
131131
LayoutContext layout
132132
=> LookDev.currentContext.layout;
133133

@@ -143,7 +143,7 @@ Layout viewLayout
143143
}
144144
}
145145
}
146-
146+
147147
SidePanel sidePanel
148148
{
149149
get => layout.showedSidePanel;
@@ -218,7 +218,7 @@ event Action IViewDisplayer.OnUpdateRequested
218218

219219
void OnEnable()
220220
{
221-
//Stylesheet
221+
//Stylesheet
222222
// Try to load stylesheet. Timing can be odd while upgrading packages (case 1219692).
223223
// In this case, it will be fixed in OnGUI. Though it can spawn error while reimporting assets.
224224
// Waiting for filter on stylesheet (case 1228706) to remove last error.
@@ -486,7 +486,7 @@ Rect IViewDisplayer.GetRect(ViewCompositionIndex index)
486486
throw new ArgumentException("Unknown ViewCompositionIndex: " + index);
487487
}
488488
}
489-
489+
490490
Vector2 m_LastFirstViewSize = new Vector2();
491491
Vector2 m_LastSecondViewSize = new Vector2();
492492
void IViewDisplayer.SetTexture(ViewCompositionIndex index, Texture texture)
@@ -532,7 +532,7 @@ void IViewDisplayer.SetTexture(ViewCompositionIndex index, Texture texture)
532532
throw new ArgumentException("Unknown ViewCompositionIndex: " + index);
533533
}
534534
}
535-
535+
536536
void IViewDisplayer.Repaint() => Repaint();
537537

538538
void ApplyLayout(Layout value)
@@ -627,19 +627,21 @@ IStyle GetEnvironmentContenairDraggerStyle()
627627

628628
void OnGUI()
629629
{
630-
//Stylesheet
630+
//Stylesheet
631631
// [case 1219692] if LookDev is open while reimporting CoreRP package,
632632
// stylesheet can be null. In this case, we can have a null stylesheet
633-
// registered as it got destroyed. Reloading it. As we cannot just
633+
// registered as it got destroyed. Reloading it. As we cannot just
634634
// remove a null entry, we must filter and reconstruct the while list.
635635
if (styleSheet == null || styleSheet.Equals(null)
636636
|| (!EditorGUIUtility.isProSkin && (styleSheetLight == null || styleSheetLight.Equals(null))))
637637
{
638638
// While (case 1228706) is still on going, we sill close and reopen the look dev.
639639
// This will prevent spawning error at frame.
640-
LookDev.Close();
641-
LookDev.Open();
642-
return;
640+
// Note 2: This actually causes the lookdev to break completely with light theme.
641+
// Until the actual issue is fixed, we'll comment this fix out as it only concerns an upgrade problem.
642+
//LookDev.Close();
643+
//LookDev.Open();
644+
//return;
643645

644646
// Following lines is the correct fix if UIElement filter garbage collected Stylesheet.
645647

@@ -689,7 +691,7 @@ void OnGUI()
689691
}
690692

691693
// [case 1245086] Guard in case the SRP asset is set to null (or to a not supported SRP) when the lookdev window is already open
692-
// Note: After an editor reload, we might get a null OnUpdateRequestedInternal and null SRP for a couple of frames, hence the check.
694+
// Note: After an editor reload, we might get a null OnUpdateRequestedInternal and null SRP for a couple of frames, hence the check.
693695
if (!LookDev.supported && OnUpdateRequestedInternal !=null)
694696
{
695697
// Print an error and close the Lookdev window (to avoid spamming the console)

com.unity.render-pipelines.core/Editor/LookDev/LookDevRenderer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public void Dispose()
3030
return;
3131
disposed = true;
3232

33-
stage?.Dispose();
3433
stage = null;
3534
updater = null;
3635
output?.Release();

com.unity.render-pipelines.core/Editor/LookDev/Stage.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ static void InitAddedObjectsRecursively(GameObject go)
196196
var lineRenderer = go.GetComponent<LineRenderer>();
197197
if (lineRenderer != null)
198198
lineRenderer.lightProbeUsage = UnityEngine.Rendering.LightProbeUsage.Off;
199-
199+
200200
var volumes = go.GetComponents<UnityEngine.Rendering.Volume>();
201201
foreach (var volume in volumes)
202202
volume.UpdateLayer(); //force update of layer now as the Update can be called after we unregister volume from manager
@@ -273,6 +273,7 @@ class StageCache : IDisposable
273273

274274
Stage[] m_Stages;
275275
Context m_Contexts;
276+
IDataProvider m_CurrentDataProvider;
276277

277278
public Stage this[ViewIndex index]
278279
=> m_Stages[(int)index];
@@ -310,6 +311,8 @@ Stage InitStage(ViewIndex index, IDataProvider dataProvider)
310311
}
311312

312313
dataProvider.FirstInitScene(stage.runtimeInterface);
314+
315+
m_CurrentDataProvider = dataProvider;
313316
return stage;
314317
}
315318

@@ -345,7 +348,10 @@ void CleanUp()
345348
if (!disposedValue)
346349
{
347350
foreach (Stage stage in m_Stages)
351+
{
352+
m_CurrentDataProvider.Cleanup(stage.runtimeInterface);
348353
stage.Dispose();
354+
}
349355

350356
disposedValue = true;
351357
}

com.unity.render-pipelines.core/Editor/Volume/VolumeComponentListEditor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,10 @@ public void OnGUI()
199199

200200
// Even if the asset is not dirty, the list of component may have been changed by another inspector.
201201
// In this case, only the hash will tell us that we need to refresh.
202-
if (asset.isDirty || asset.GetHashCode() != m_CurrentHashCode)
202+
if (asset.isDirty || asset.GetComponentListHashCode() != m_CurrentHashCode)
203203
{
204204
RefreshEditors();
205-
m_CurrentHashCode = asset.GetHashCode();
205+
m_CurrentHashCode = asset.GetComponentListHashCode();
206206
asset.isDirty = false;
207207
}
208208

com.unity.render-pipelines.core/Editor/Volume/VolumeEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public override void OnInspectorGUI()
5959
EditorGUI.BeginProperty(lineRect, label, m_IsGlobal);
6060
{
6161
EditorGUI.BeginChangeCheck();
62-
isGlobal = EditorGUILayout.Popup(label, isGlobal, m_Modes);
62+
isGlobal = EditorGUI.Popup(lineRect, label, isGlobal, m_Modes);
6363
if (EditorGUI.EndChangeCheck())
6464
m_IsGlobal.boolValue = isGlobal == 0;
6565
}

com.unity.render-pipelines.core/Runtime/LookDev/IDataProvider.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ public interface IDataProvider
4646
/// </summary>
4747
/// <param name="stage">Access element of the LookDev's scene</param>
4848
void OnEndRendering(StageRuntimeInterface stage);
49+
50+
/// <summary>
51+
/// Callback called to do any necessary cleanup.
52+
/// </summary>
53+
/// <param name="SRI">Access element of the LookDev's scene</param>
54+
void Cleanup(StageRuntimeInterface SRI);
4955
}
5056

5157
/// <summary>

com.unity.render-pipelines.core/Runtime/Volume/VolumeProfile.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,5 +297,18 @@ public override int GetHashCode()
297297
return hash;
298298
}
299299
}
300+
301+
internal int GetComponentListHashCode()
302+
{
303+
unchecked
304+
{
305+
int hash = 17;
306+
307+
for (int i = 0; i < components.Count; i++)
308+
hash = hash * 23 + components[i].GetType().GetHashCode();
309+
310+
return hash;
311+
}
312+
}
300313
}
301314
}

com.unity.render-pipelines.core/ShaderLibrary/Shadow/ShadowSamplingTent.hlsl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#ifndef SHADOW_SAMPLING_TENT_INCLUDED
2+
#define SHADOW_SAMPLING_TENT_INCLUDED
13
// ------------------------------------------------------------------
24
// PCF Filtering Tent Functions
35
// ------------------------------------------------------------------
@@ -242,3 +244,4 @@ void SampleShadow_ComputeSamples_Tent_7x7(real4 shadowMapTexture_TexelSize, real
242244
fetchesWeights[14] = fetchesWeightsU.z * fetchesWeightsV.w;
243245
fetchesWeights[15] = fetchesWeightsU.w * fetchesWeightsV.w;
244246
}
247+
#endif

com.unity.render-pipelines.high-definition/CHANGELOG.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Changelog
1+
# Changelog
22
All notable changes to this package will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
@@ -8,6 +8,34 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88

99
### Fixed
1010
- Fixed a bug where connections to the `Normal` slot on *Stack Lit Master* node would be lost when changing normal space.
11+
- Fixed an issue where manipulating the color wheels in a volume component would reset the cursor every time.
12+
- Fixed an issue where static sky lighting would not be updated for a new scene until it's reloaded at least once.
13+
- Fixed missing include guards in shadow hlsl files.
14+
- Fixed issue with light layers bigger than 8 (and above the supported range).
15+
- Fixed issues with scene view and transparent motion vectors.
16+
- Fix reflection probe frame settings override
17+
- Workaround an issue caused by GetKernelThreadGroupSizes failing to retrieve correct group size.
18+
- Fixed transparent motion vector framesetting not sanitized.
19+
- Fix issue causing blocky artifacts when decals affect metallic and are applied on material with specular color workflow.
20+
- Fixed wrong order of post process frame settings.
21+
- Fixed warning in HDAdditionalLightData OnValidate (cases 1250864, 1244578)
22+
- Fixed issue with blue line in prefabs for volume mode.
23+
- Fix issue that caused sky to incorrectly render when using a custom projection matrix.
24+
- Fixed issue with completely black AO on double sided materials when normal mode is set to None.
25+
- Fixed issue with culling layer mask of area light's emissive mesh
26+
- Fixed for area light not updating baked light result when modifying with gizmo.
27+
- Fixed errors when switching area light to disk shape while an area emissive mesh was displayed.
28+
- PBR Sky now doesn't go black when going below sea level, but it instead freezes calculation as if on the horizon.
29+
- Fixed XR single-pass macros in tessellation shaders.
30+
- Fixed XR Display providers not getting zNear and zFar plane distances passed to them when in HDRP.
31+
- Fixed issue with white flash when enabling SSR.
32+
- Fixed issue with depth pyramid generation and dynamic resolution.
33+
- Fixed an issue where opening the look dev window with the light theme would make the window blink and eventually crash unity.
34+
- Fixed a serialization issue, preventing quality level parameters to undo/redo and update scene view on change.
35+
- Fixed an issue where look dev lighting would go black when a new scene is loaded.
36+
37+
### Changed
38+
- Changed extensions of shader CAS include files.
1139

1240
## [7.4.1] - 2020-06-03
1341

com.unity.render-pipelines.high-definition/Documentation~/Diffusion-Profile.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# Diffusion Profile
22

3-
The High Definition Render Pipeline (HDRP) stores most [subsurface scattering](Subsurface-Scattering.html) settings in a __Diffusion Profile__ Asset. You can assign a __Diffusion Profile__ Asset directly to Materials that use Subsurface Scattering.
3+
The High Definition Render Pipeline (HDRP) stores most [subsurface scattering](Subsurface-Scattering.md) settings in a __Diffusion Profile__ Asset. You can assign a __Diffusion Profile__ Asset directly to Materials that use Subsurface Scattering.
44

5-
To create a Diffusion Profile, navigate to __Assets > Create > Rendering > Diffusion Profile__. To use it, open your HDRP Asset and add it to the __Diffusion Profile List__ property.
5+
To create a Diffusion Profile, navigate to __Assets > Create > Rendering > Diffusion Profile__.
6+
7+
* To use it by default, open your HDRP Asset and, in the **Material** section, add it to the __Diffusion Profile List__.
8+
* To use it in a particular [Volume](Volumes.md), select a Volume with a [Diffusion Profile Override](Override-Diffusion-Profile.md) and add it to the **Diffusion Profile List** .
9+
10+
## Properties
611

712
| Property| Description |
813
|:---|:---|
@@ -14,15 +19,15 @@ To create a Diffusion Profile, navigate to __Assets > Create > Rendering > Diffu
1419

1520

1621

17-
## Subsurface Scattering only
22+
### Subsurface Scattering only
1823

1924
| Property| Description |
2025
|:---|:---|
2126
| **Texturing Mode** | Use the drop-down to select when HDRP applies the albedo of the Material.<br />&#8226; **Post-Scatter**: HDRP applies the albedo to the Material after the subsurface scattering pass pass. This means that the contents of the albedo texture are not blurred. Use this mode for scanned data and photographs that already contain some blur due to subsurface scattering. <br />&#8226; **Pre- and Post-Scatter**: Albedo is partially applied twice, before and after the subsurface scattering pass pass. Effectively, this blurs the albedo, resulting in a softer, more natural look. |
2227

2328

2429

25-
## Transmission only
30+
### Transmission only
2631

2732
| Property| Description |
2833
|:---|:---|
@@ -33,7 +38,7 @@ To create a Diffusion Profile, navigate to __Assets > Create > Rendering > Diffu
3338

3439

3540

36-
## Profile Previews
41+
### Profile Previews
3742

3843
| Property| Description |
3944
|:---|:---|

0 commit comments

Comments
 (0)