Skip to content

Internal/6000.0/staging #8135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 87 commits into from
Apr 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
1f5e8c2
[Port] [6000.0] [XRVOSB-64] Fix post process passes when HDR and XR r…
mtschoen-unity Feb 20, 2025
f6f6c14
[Backport 6000.0] UUM-95334 NativePassData.GraphPasses() has GC Alloc…
RoseHirigoyen Feb 20, 2025
4ead064
[Port] [6000.0] Fix APV assets missing from .unitypackage exports
svc-reach-platform-support Feb 21, 2025
36936c8
Port 6000.0 for UUM-97863
venkify Feb 21, 2025
720eac2
[Port] [6000.0] Check if transparent objects receive shadows when set…
laylaarab Feb 21, 2025
fd902f3
[Port] [6000.0] DOCG-6671 Add missing render graph Rendering Debugger…
svc-reach-platform-support Feb 21, 2025
5b22a61
[Port] [6000.0] Fix Jump To Source functionality in Render Graph View…
svc-reach-platform-support Feb 21, 2025
db4de48
[Port] [6000.0] Graphics docs feedback fixes February 2025 pt2
markg-unity Feb 21, 2025
b4e7f0c
[Port] [6000.0] [SpeedTree][URP] Fix compressed & downsampled normal …
svc-reach-platform-support Feb 25, 2025
9e193e7
[Backport 6000.0] DOCG-6679 - What's New 17 to TOC
Sam-Unity Feb 25, 2025
fe8cf54
[Port] [6000.0] Moving Volume Tests components to SRP smoke tests.
svc-reach-platform-support Feb 26, 2025
44ee8ef
[Port] [6000.0] Fix editor debug views not rendering when GPUResident…
svc-reach-platform-support Feb 26, 2025
d244f4d
[Port] [6000.0] [URP] Fix missing namespace and upgrade from old GUID…
svc-reach-platform-support Feb 27, 2025
f1d0374
6000.0: Fixed the generation of new artifact ID of ShaderGraph on eve…
Saiprasad945 Feb 27, 2025
164f21d
[Backport][UUM-82524][6000.0] Fix global light textures not set corre…
kennytann Feb 27, 2025
e08e840
[Port] [6000.0] DOCG-4872 Review Full Screen Renderer Feature code te…
svc-reach-platform-support Feb 27, 2025
5d0abac
[Port] [6000.0] [VFX] Fix Shader Warnings
svc-reach-platform-support Mar 1, 2025
7d8cae3
[Port] [6000.0][UUM-95754] Add layer mask in renderer 2d data
svc-reach-platform-support Mar 1, 2025
f6fceb0
[Port] [6000.0] [VFX] Fix missing invalidation in case of SetTexture
svc-reach-platform-support Mar 1, 2025
efbccfd
[Port] [6000.0] Fix for UUM 83095
svc-reach-platform-support Mar 3, 2025
260a986
[Port] [6000.0] [VFX] Fix Capitalization
svc-reach-platform-support Mar 3, 2025
20d584e
[Port] [6000.0] [VFX/SG] Fix Unexpected Visible Dead Particles
svc-reach-platform-support Mar 3, 2025
3efada4
[Port] [6000.0] DOCG-5799 Clarify Sample Graphics Buffer and custom t…
svc-reach-platform-support Mar 3, 2025
8df97e6
[Port] [6000.0] [UUM-97588] Fix Fullscreen Render Pass on visionOS
svc-reach-platform-support Mar 4, 2025
cbd93b2
[Port] [6000.0] [VFX] Fixed cut labels when editor font is set to "Sy…
svc-reach-platform-support Mar 4, 2025
a496844
[Port] [6000.0] [VFX] Fixed invalid cast exception happens when click…
svc-reach-platform-support Mar 4, 2025
d4844e2
[Port] [6000.0] [VFX] Context title label was slightly offset when be…
svc-reach-platform-support Mar 4, 2025
c830882
[Port] [6000.0] [VFX] Undoing slider value change not updating float…
svc-reach-platform-support Mar 4, 2025
aeca46e
[Backport][Regression][UUM-98261] Fix shader compilation warning
zeroyao Mar 4, 2025
2f8d5ab
[Port] [6000.0] [2d] Fix Case UUM-90726
svc-reach-platform-support Mar 5, 2025
e425e8b
[Port] [6000.0] Change the size of the IndirectBuffer used by Volumet…
svc-reach-platform-support Mar 5, 2025
63dc15f
[Port] [6000.0] [UUM-85456] Fix missing fog parameters in sprite subt…
svc-reach-platform-support Mar 7, 2025
12d5226
[Port] [6000.0] [URP] DecalProjector: Fixed material-properties updat…
svc-reach-platform-support Mar 7, 2025
393f375
[Port] [6000.0] [HDRP] Fix Lit's depthOffset + no-heightmap combination
svc-reach-platform-support Mar 7, 2025
122f241
[Port] [6000.0] [SRP] Release SRP Core predefined objects
svc-reach-platform-support Mar 7, 2025
d43ae76
[Port] [6000.0] [VFX] Fix Invalid Graph Compilation
svc-reach-platform-support Mar 8, 2025
27e1ffa
[Port] [6000.0] Fix water memleak on domain reload.
svc-reach-platform-support Mar 10, 2025
718b4dc
[Port] [6000.0] [VFX] Prevent buffer overflow when parent system has …
gabrieldelacruz Mar 10, 2025
ae15e1f
[Port] [6000.0] Added Heatmap option to color modes
svc-reach-platform-support Mar 11, 2025
d3ab90f
[Port] [6000.0] Graphics docs accessibility fixes 25 February part 8 …
svc-reach-platform-support Mar 11, 2025
6ea5c07
[Port] [6000.0][UUM-99455] Fix post processing resolve for Renderer2D
svc-reach-platform-support Mar 12, 2025
9dbdb32
Update VFX Graph systems requirements page
fatimah-f Mar 12, 2025
0d32e60
[Port] [6000.0] [HDRP] Fix lens flare issue with viewport rect and ha…
svc-reach-platform-support Mar 13, 2025
6329df9
[Port] [6000.0] [Accessibility Sprint 2025] HDRP Probe Adjustment Vol…
svc-reach-platform-support Mar 13, 2025
6779b13
[Port] [6000.0] [2D] Fix Unexpected ZTest Removal
svc-reach-platform-support Mar 15, 2025
f56e189
[Port] [6000.0] Correctly handle ForceLOD with GPUResidentDrawer
svc-reach-platform-support Mar 15, 2025
fcfe034
[Port] [6000.0] [HDRP] Adding Scale Mode in Local Volumetric Fog comp…
svc-reach-platform-support Mar 15, 2025
010b7e6
[6000.0] - Remove the com.unity.testtools.codecoverage from manifest …
Mar 15, 2025
9148308
[Port] [6000.0] Switch to OnDidApplyAnimationProperties instead of Up…
svc-reach-platform-support Mar 15, 2025
1a5dcdd
[Port] [6000.0] [UUM-11350] Fix runtime light2d not created with targ…
svc-reach-platform-support Mar 17, 2025
5e04a7c
[Port] [6000.0] DOCG-4872 (part 2): Improve comments in Renderer Feat…
svc-reach-platform-support Mar 17, 2025
2b51fd2
[Port] [6000.0] [VFX] Add support for Shader Graph BakedGI node in VF…
svc-reach-platform-support Mar 17, 2025
859ac14
[Port] [6000.0] [VFX] Remove errors from Texture3D and TextureCube sl…
svc-reach-platform-support Mar 17, 2025
7c12ae2
[Port] [6000.0] Graphics docs accessibility fixes 25 February part 11…
markg-unity Mar 17, 2025
dd10472
[Port] [6000.0] [URP] Fixed emission-enabling evaluation.
svc-reach-platform-support Mar 18, 2025
be024ef
[Port] [6000.0] Fixed multiple BakingSet processes
svc-reach-platform-support Mar 19, 2025
24e550e
[Port] [6000.0] Fix UUM-92338: rcp on small float16 values was causin…
svc-reach-platform-support Mar 19, 2025
99958ce
[Port] [6000.0] [HDRP] Fix artifacts of Volumetric Clouds
svc-reach-platform-support Mar 19, 2025
566ba75
[HDRP] fix for HDRP Lit Shader compilation
Mar 19, 2025
68e8102
[Port] [6000.0] Use correct per-eye world space position when samplin…
svc-reach-platform-support Mar 19, 2025
0f09203
Fix bad Reflection Probes rendering of Volumetric Clouds in HDRP (bac…
urasmus Mar 19, 2025
6c449a7
[Port] [6000.0] Rendering Debugger - Creating a Rendering Layer widge…
kirill-titov-u Mar 19, 2025
0b61cc3
[Port] [6000.0] Fix APV data contained in asset bundle not loading pr…
pema99 Mar 20, 2025
637aa56
[Port] [6000.0] [URP] Fix shadow jittering issue with TAA in deferred…
Mar 20, 2025
a425c81
[Port] [6000.0] [VFX][Doc] Removed VFXFIXED_RAND from documentation b…
svc-reach-platform-support Mar 20, 2025
a8d43a1
Revert "[Port] [6000.0] [URP] Fixed emission-enabling evaluation."
madkins-71 Mar 21, 2025
2050281
[Port] [6000.0] [VFX] Improve expand collapse icon quality
svc-reach-platform-support Mar 21, 2025
da44604
[Port] [6000.0] [HDRP] Fix documentation for box light support in RT …
remi-chapelain Mar 21, 2025
3c90956
[Port] [6000.0] [VFX] Fixed an issue when converting to subgraph a se…
svc-reach-platform-support Mar 21, 2025
551f330
Merge PR #51725 from docs/graphics/docg-5833-mask-and-current-water-d…
ocarrere Mar 24, 2025
8e6e5ab
[Port] [6000.0] Fixed issue where inverse matrices were not set in XR.
svc-reach-platform-support Mar 26, 2025
11e0df9
[Port] [6000.0] Fixed a "[APV] Can no longer switch baking set mode"
svc-reach-platform-support Mar 27, 2025
80deee3
[Port] [6000.0] Accessibility fixes in VFX Graph manual
svc-reach-platform-support Mar 29, 2025
e20b3a3
[Port] [6000.0] Accessibility fixes in HDRP manual
svc-reach-platform-support Mar 29, 2025
fcc9524
[Port] [6000.0] DOCG-6846 Fix and update main manual links to URP
markg-unity Mar 29, 2025
1e27a9b
[Port] [6000.0] [SRP][XR][OpenGLES] Copy correct value of MSAA sample…
svc-reach-platform-support Mar 31, 2025
1fc83ca
[Port] [6000.0] [APV] Fix NullReferenceException when baking multiple…
svc-reach-platform-support Mar 31, 2025
c0c8ea1
Backport of https://github.cds.internal.unity3d.com/unity/unity/pull/…
Paulm-Unity Apr 1, 2025
45e75e0
[2d] Fix (Case UUM-99031) Inconsistent rendering of Sprite Shapes occ…
venkify Apr 2, 2025
7984b10
[Port] [6000.0] Fix shadows for additional lights in URP
svc-reach-platform-support Apr 2, 2025
612c116
[Port] [6000.0] [VFX][Fix] Fix error when deleting specific blocks
svc-reach-platform-support Apr 3, 2025
0cab9ea
[Port] [6000.0] [APV] Fix warning when baking APV with zero occlusion…
svc-reach-platform-support Apr 3, 2025
af56734
[Port] [6000.0] Graphics docs feedback fixes November 2024 (part 9 - …
markg-unity Apr 3, 2025
a6275b4
[Port] [6000.0] [SRPF] Unified VFXHelpUrl attribute
svc-reach-platform-support Apr 4, 2025
0a73b76
[Port] [6000.0] Fix editor console error - Missing APV data asset
svc-reach-platform-support Apr 5, 2025
a288cc2
[Port] [6000.0] [ShaderGraph]properties bugfixes
svc-reach-platform-support Apr 5, 2025
6f7ecc3
[Port] [6000.0] DOCG-6799 DOCG- 6812 Sky occlusion docs updates
svc-reach-platform-support Apr 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ If your project uses a custom Scriptable Render Pipeline (SRP), you can add cont

If your project uses the Universal Render Pipeline (URP) or the High-Definition Render Pipeline (HDRP), refer to the following pages:

- [Add controls to the Rendering Debugger in URP](https://docs.unity3d.com/Packages/[email protected]/manual/features/rendering-debugger-add-controls.html)
- [Add controls to the Rendering Debugger in URP](https://docs.unity3d.com/Manual/urp/features/rendering-debugger-add-controls.html)
- [Add controls to the Rendering Debugger in HDRP](https://docs.unity3d.com/Packages/[email protected]/manual/Rendering-Debugger-Add-Controls.html)

## How to access the Rendering Debugger
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* [What's new](whats-new.md)
* [12](whats-new-12.md)
* [13](whats-new-13.md)
* [17](whats-new-17.md)
* [Creating a custom render pipeline](srp-custom.md)
* [Create a custom Scriptable Render Pipeline](srp-custom-getting-started.md)
* [Create a Render Pipeline Asset and Render Pipeline Instance in a custom render pipeline](srp-creating-render-pipeline-asset-and-render-pipeline-instance.md)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The request is processed sequentially in your script, so there's no callback inv

`RenderPipeline.StandardRequest` renders the following:

* A full stack of cameras in the [Universal Render Pipeline](https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@latest/index.html) (URP).
* A full stack of cameras in the [Universal Render Pipeline](https://docs.unity3d.com/Manual/urp/urp-introduction.html) (URP).
* A single camera in the [High Definition Render Pipeline](https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@latest/index.html) (HDRP).

The following code sample gets the output of the scriptable render pipeline when you select a GUI button. Attach the script to a camera and select **Enter Play Mode**.
Expand Down Expand Up @@ -91,4 +91,4 @@ public class StandardRenderRequest : MonoBehaviour

## Other useful information

* On [Universal Render Pipeline (URP)](https://docs.unity3d.com/Packages/[email protected]/manual/User-Render-Requests.html).
* On [Universal Render Pipeline (URP)](https://docs.unity3d.com/Manual/urp/User-Render-Requests.html).
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ SRP Core contains reusable code, including boilerplate code for working with pla

If you are creating a custom SRP from scratch or customizing a prebuilt SRP, using SRP Core will save you time.

For more information on SRP, including a guide to getting started with a custom SRP, see the [SRP documentation](https://docs.unity3d.com/Manual/ScriptableRenderPipeline.html). For more information on Unity's prebuilt SRPs, see the [Universal Render Pipeline (URP) documentation](https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@latest), or the [High Definition Render Pipeline (HDRP) documentation](https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@latest).
For more information on SRP, including a guide to getting started with a custom SRP, see the [SRP documentation](https://docs.unity3d.com/Manual/ScriptableRenderPipeline.html). For more information on Unity's prebuilt SRPs, see the [Universal Render Pipeline (URP) documentation](https://docs.unity3d.com/Manual/urp/urp-introduction.html), or the [High Definition Render Pipeline (HDRP) documentation](https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@latest).
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,15 @@ public override void SetValue(object value, DebugUI.IValueField field)
/// <summary>
/// Unsigned Integer Debug State.
/// </summary>
[Serializable, DebugState(typeof(DebugUI.UIntField), typeof(DebugUI.MaskField))]
[Serializable, DebugState(typeof(DebugUI.UIntField))]
public sealed class DebugStateUInt : DebugState<uint> { }

/// <summary>
/// Rendering layer mask state.
/// </summary>
[Serializable, DebugState(typeof(DebugUI.RenderingLayerField))]
public sealed class DebugStateRenderingLayer : DebugState<RenderingLayerMask> { }

/// <summary>
/// Float Debug State.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,11 @@ protected override Enum DoGUI(Rect rect, GUIContent label, DebugUI.BitField fiel
}
}


/// <summary>
/// Builtin Drawer for Maskfield Debug Items.
/// </summary>
[DebugUIDrawer(typeof(DebugUI.MaskField))]
public sealed class DebugUIDrawerMaskField : DebugUIFieldDrawer<uint, DebugUI.MaskField, DebugStateUInt>
[DebugUIDrawer(typeof(DebugUI.RenderingLayerField))]
public sealed class DebugUIDrawerRenderingLayerField : DebugUIFieldDrawer<RenderingLayerMask, DebugUI.RenderingLayerField, DebugStateRenderingLayer>
{
/// <summary>
/// Does the field of the given type
Expand All @@ -413,15 +412,10 @@ public sealed class DebugUIDrawerMaskField : DebugUIFieldDrawer<uint, DebugUI.Ma
/// <param name="field">The field</param>
/// <param name="state">The state</param>
/// <returns>The current value from the UI</returns>
protected override uint DoGUI(Rect rect, GUIContent label, DebugUI.MaskField field, DebugStateUInt state)
protected override RenderingLayerMask DoGUI(Rect rect, GUIContent label, DebugUI.RenderingLayerField field, DebugStateRenderingLayer state)
{
uint value = field.GetValue();

var enumNames = new string[field.enumNames.Length];
for (int i = 0; i < enumNames.Length; i++)
enumNames[i] = field.enumNames[i].text;
var mask = EditorGUI.MaskField(rect, label, (int)value, enumNames);

var mask = EditorGUI.MaskField(rect, label, (int)value, field.renderingLayersNames);
return (uint)mask;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void OnEnable()
hideFlags = HideFlags.HideAndDontSave;
}
}

[CoreRPHelpURL("Rendering-Debugger")]
sealed class DebugWindow : EditorWindowWithHelpButton, IHasCustomMenu
{
Expand Down Expand Up @@ -478,22 +478,22 @@ void OnGUI()
using (new EditorGUILayout.VerticalScope())
{
var selectedPanel = panels[m_Settings.selectedPanel];

using (new EditorGUILayout.HorizontalScope())
{
var style = new GUIStyle(CoreEditorStyles.sectionHeaderStyle) { fontStyle = FontStyle.Bold };
EditorGUILayout.LabelField(new GUIContent(selectedPanel.displayName), style);

// Context menu
var rect = GUILayoutUtility.GetLastRect();
var contextMenuRect = new Rect(rect.xMax, rect.y + 4f, 16f, 16f);

CoreEditorUtils.ShowHelpButton(contextMenuRect, selectedPanel.documentationUrl, new GUIContent($"{selectedPanel.displayName} panel."));
}

const float leftMargin = 4f;
GUILayout.Space(leftMargin);

using (var scrollScope = new EditorGUILayout.ScrollViewScope(m_ContentScroll))
{
TraverseContainerGUI(selectedPanel);
Expand Down Expand Up @@ -544,6 +544,11 @@ void OnWidgetGUI(DebugUI.Widget widget)
if (widget.isInactiveInEditor || widget.isHidden)
return;

if (widget.queryPath == null)
{
Debug.LogError($"Widget {widget.GetType()} query path is null");
return;
}
// State will be null for stateless widget
m_WidgetStates.TryGetValue(widget.queryPath, out DebugState state);

Expand Down
30 changes: 30 additions & 0 deletions Packages/com.unity.render-pipelines.core/Editor/Deprecated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,34 @@ public DefaultVolumeProfileEditor(Editor baseEditor, VolumeProfile profile)
m_TargetSerializedObject = baseEditor.serializedObject;
}
}



/// <summary>
/// Builtin Drawer for Maskfield Debug Items.
/// </summary>
[DebugUIDrawer(typeof(DebugUI.MaskField))]
[Obsolete("DebugUI.MaskField has been deprecated and is not longer supported, please use BitField instead. #from(6000.2)", false)]
public sealed class DebugUIDrawerMaskField : DebugUIFieldDrawer<uint, DebugUI.MaskField, DebugStateUInt>
{
/// <summary>
/// Does the field of the given type
/// </summary>
/// <param name="rect">The rect to draw the field</param>
/// <param name="label">The label for the field</param>
/// <param name="field">The field</param>
/// <param name="state">The state</param>
/// <returns>The current value from the UI</returns>
protected override uint DoGUI(Rect rect, GUIContent label, DebugUI.MaskField field, DebugStateUInt state)
{
uint value = field.GetValue();

var enumNames = new string[field.enumNames.Length];
for (int i = 0; i < enumNames.Length; i++)
enumNames[i] = field.enumNames[i].text;
var mask = EditorGUI.MaskField(rect, label, (int)value, enumNames);

return (uint)mask;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,11 @@ unsafe static void WriteBakingCells(BakingCell[] bakingCells)

AssetDatabase.ImportAsset(cellDataFilename);
AssetDatabase.ImportAsset(cellOptionalDataFilename);
AssetDatabase.ImportAsset(cellProbeOcclusionDataFilename);
// If we did not write a probe occlusion file (because it was zero bytes), don't try to load it (UUM-101480)
if (probeOcclusion.Length > 0)
{
AssetDatabase.ImportAsset(cellProbeOcclusionDataFilename);
}
AssetDatabase.ImportAsset(cellBricksDataFilename);
AssetDatabase.ImportAsset(cellSharedDataFilename);
AssetDatabase.ImportAsset(cellSupportDataFilename);
Expand Down
Loading