-
Notifications
You must be signed in to change notification settings - Fork 798
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
Internal/2023.2/staging #8059
Internal/2023.2/staging #8059
Commits on Mar 25, 2024
-
[Port] [2023.2] [VFX] Remove error popup when cancelling a drag edge …
…with escape key Jira: UUM-61583 Steps to repro: - Create a new HDRP/URP project - Create a new VFX Graph - Create two operators that have incompatible slots (`Float` and `Sample Gradient` for instance) - Drag `Float` connection out and hover it over gradient input slot - Hit escape to cancel - Observe wrong type popup gets stuck and moves around with graph ![Unity_IrNrWdfUSY](https://media.github.cds.internal.unity3d.com/user/4003/files/2a6b8809-0eb9-4e74-bc33-dd4ed7e326b4) ![video](https://jira.unity3d.com/secure/attachment/1368545/WrontTypePopup.mp4)
Configuration menu - View commit details
-
Copy full SHA for 29034c7 - Browse repository at this point
Copy the full SHA 29034c7View commit details -
[2023.2][URP] Fixing a NullReferenceException when logging an error i…
…n Server Builds (UUM-56965) When running server builds calling `{GetType().DeclaringType.Name}` will give a NullReferenceException. This happens in two places inside the URP Codebase. To fix this the calls are simply removed as they don't provide much value.
Configuration menu - View commit details
-
Copy full SHA for 9563255 - Browse repository at this point
Copy the full SHA 9563255View commit details
Commits on Mar 27, 2024
-
[Port] [2023.2] Fix URP & HDRP material UI leaking LabelWidth state
Fix https://jira.unity3d.com/browse/UUM-66215 where the layout of elements in DOTS Entity Baking Preview panel changes depending on if Material foldout UI is expanded or not. When the material foldout GUI is expanded on URP or HDRP, it affects other UI drawn afterwards because the UI logic modified persistent `EditorGUIUtility.labelWidth` value and didn't restore it properly after drawing its widgets. This PR fixes that by resetting the value to 0 after drawing the material options. The fix is made separately on CoreRP (used by URP Material Editor) and HDRP because the UI has separate implementations. Note: we are simply setting the labelWidth to 0 instead of restoring whatever value it was before, because 0 is a special value that cannot be retrieved by using the property getter of `EditorGUIUtility.labelWidth` - if the internal value is 0, it will return some predetermined values instead (see [implementation](https://github.cds.internal.unity3d.com/unity/unity/blob/trunk/Editor/Mono/EditorGUIUtility.cs#L1367-L1379)). Therefore we must make the assumption that 0 is the correct value to be restored in this case.
Configuration menu - View commit details
-
Copy full SHA for 304cb5a - Browse repository at this point
Copy the full SHA 304cb5aView commit details -
[URP][Backport] Renderer Features skip for offscreen depth rendering …
…if color is required by the feature This is a backport of UUM-14679 and UUM-59428 https://github.cds.internal.unity3d.com/unity/unity/pull/27096 https://github.cds.internal.unity3d.com/unity/unity/pull/41673 https://github.cds.internal.unity3d.com/unity/unity/pull/43116
Configuration menu - View commit details
-
Copy full SHA for 0d3c007 - Browse repository at this point
Copy the full SHA 0d3c007View commit details -
2023.2/graphics/urp/backport/uum 49324 taa api
Add public scripting API for URP TAA settings.
Configuration menu - View commit details
-
Copy full SHA for 419db23 - Browse repository at this point
Copy the full SHA 419db23View commit details -
2023.2:[HDRP] multiply spec by opacity when not preserving spec in pr…
…emultiplied alpha This PR fixes the issue Adds an option to multiply specular by opacity by disabling preserve specular This is not technically correct but offers similar control to transparents that are not in premultiply mode and helps for VFX. Disabling affect specular in material settings provides the same result as before, but now you have an option to get a different result, so maybe not really needed to mention in upgrade guide as now it's working more as expected (previously the option had no effect) * Bug:https://jira.unity3d.com/browse/UUM-48661 * Backport:https://jira.unity3d.com/browse/UUM-51548
Configuration menu - View commit details
-
Copy full SHA for df3488e - Browse repository at this point
Copy the full SHA df3488eView commit details -
[Port] [2023.2] URP: Ensure ScriptableRendererFeatures are compiled b…
…efore validating them. This PR add an extra check to `ScriptableRendererData.OnValidate` to ensure we only validate `ScriptableRendererFeatures` when all scripts have been compiled. Not doing so can lead to errors being thrown to the console during import (see attached Jira ticket). Jira: https://jira.unity3d.com/browse/UUM-58944
Configuration menu - View commit details
-
Copy full SHA for abc211e - Browse repository at this point
Copy the full SHA abc211eView commit details -
[Port] [2023.2] Fix scene dirtiness issue with the HDRP compositor
https://jira.unity3d.com/browse/UUM-58350 An internal operation (addComponent) was registering an editor Undo, marking the scene as dirty every time we entered the playmode.
Configuration menu - View commit details
-
Copy full SHA for d99241c - Browse repository at this point
Copy the full SHA d99241cView commit details -
[Port] [2023.2] [URP] Fix screenspace shadows clashing when depth pri…
…ming is forced depth copy after depth priming happens after screenspace shadows and it should be vice versa due to the fact, that both events are the same. this PR increases the event of screenspace shadows by one just to guarantee the correct sequencing of the passes
Configuration menu - View commit details
-
Copy full SHA for eaa96c3 - Browse repository at this point
Copy the full SHA eaa96c3View commit details -
[2023.2][URP] Select correct depth target when doing SwapColorBuffer …
…(UUM-44446) Backport of #38151.
Configuration menu - View commit details
-
Copy full SHA for 255f154 - Browse repository at this point
Copy the full SHA 255f154View commit details -
[Port] [2023.2] [URP] Fixed the NativeRenderPass camera target MSAA l…
…ogic to match the non-NRP path In some edge cases, when NativeRenderPass is enabled, MSAA resolve errors are thrown, because of incorrect render target setup when using a camera target texture. This PR makes sure the same logic used in the non-NRP path is used when NRP is enabled
Configuration menu - View commit details
-
Copy full SHA for 34bfb3e - Browse repository at this point
Copy the full SHA 34bfb3eView commit details
Commits on Mar 29, 2024
-
[2023.2][URP] Fixing URP PR Aggregate job.
Currently the URP PR Aggregate job, which we run against PRs touching the URP codebase, is broken due to 4 jobs. This PR gets the URP PR Aggregate job green again by moving 3 jobs to unstable and disabling one test.
Configuration menu - View commit details
-
Copy full SHA for a49a27b - Browse repository at this point
Copy the full SHA a49a27bView commit details -
Backport : Layout: changed the flexBasis to be calculated including t…
…he min/max Fix UUM-51239
Configuration menu - View commit details
-
Copy full SHA for f5f5537 - Browse repository at this point
Copy the full SHA f5f5537View commit details
Commits on Apr 2, 2024
-
[Port] [2023.2] [Core][HDRP] Fixing internally created Game Objects b…
…eing deallocated on scene changes. This PR fixes GameObjects allocated by HDRP (CameraCache, HDAdditionalLightData/ComponentSingletons) being deallocated in some cases on scene changes. It also slightly simplifies the Probe Camera cache to avoir re-setting the same values every frame. This fix was discussed during previous bugfix with @julien.
Configuration menu - View commit details
-
Copy full SHA for bc3c1f7 - Browse repository at this point
Copy the full SHA bc3c1f7View commit details
Commits on Apr 3, 2024
-
[2023.2][VFX] Backport model invalidation fixes
2023.2 model invalidation backports This PR includes fixes from several trunk PRs: - https://github.cds.internal.unity3d.com/unity/unity/pull/41986 - https://github.cds.internal.unity3d.com/unity/unity/pull/45606 - https://github.cds.internal.unity3d.com/unity/unity/pull/40877
Configuration menu - View commit details
-
Copy full SHA for 23acd29 - Browse repository at this point
Copy the full SHA 23acd29View commit details -
[Port] [2023.2] Add doc for 'Screen Space - Overlay' in Graphics Comp…
…ositor. Added documentation on how to use the Screen Space Overlay render mode alongside the Graphics Compositor. We decided not to change the actual behavior of SupportedRenderingFeatures.active.rendersUIOverlay when the Graphics Compositor is in use, but instead, to document a way force the rendering of the UI in this context. When the user follows the new documentation steps, the UI is indeed well renderer in the GameView. Tested manually and locally on my Windows machine.
Configuration menu - View commit details
-
Copy full SHA for 3646dda - Browse repository at this point
Copy the full SHA 3646ddaView commit details -
[Port] [2023.2] Fixed _ScreenParams after upscaling and update screen…
… node doc As in title
Configuration menu - View commit details
-
Copy full SHA for 3ac4e2e - Browse repository at this point
Copy the full SHA 3ac4e2eView commit details -
[Port] [2023.2] [HDRP] update graphics compositor limitation for VR
update graphics compositor limitation for VR
Configuration menu - View commit details
-
Copy full SHA for 626b5f0 - Browse repository at this point
Copy the full SHA 626b5f0View commit details -
[Port] [2023.2] Fixed Unity-specific #pragma directives being reporte…
…d in #include files Backport of https://github.cds.internal.unity3d.com/unity/unity/pull/45790 From trunk PR: Fixes [UUM-62756](https://jira.unity3d.com/browse/UUM-62756). The public documentation states the shader compiler will ignore Unity-specific #pragma directives in files included through #include, however this behavior was broken as they were being reported in both #include and #include_with_pragmas. This change fixes that so they're not reported in #include files. Also, added a warning message when someone uses #include_with_pragmas within a file that was itself included with #include. In that particular case, #include_with_pragmas will be treated as #include, meaning all Unity-specific pragmas it might contain will be ignored. Bug: https://jira.unity3d.com/browse/UUM-62756 Backport: https://jira.unity3d.com/browse/UUM-63800
Configuration menu - View commit details
-
Copy full SHA for 05a3656 - Browse repository at this point
Copy the full SHA 05a3656View commit details
Commits on Apr 4, 2024
-
Prefab preview thumbnails are not being rendered when a Project uses …
…HDRP In 2023.2, assets preview thumbnails are not rendered properly sometimes, they are gray. It's not the case in `2023.3.0a7`, it works perfectly fine. It works because of the introduced changes in this PR: https://github.cds.internal.unity3d.com/unity/unity/pull/34816 Specifically the changes for the `HDRenderPipeline.cs`. Removing the globalSettings null check in 2023.2 fixes the issue. I don't know this code area, this is definitely more a question for @alex-vazquez I have to jump in vacation this week, I apologize for that, but wanted to create this PR so I can help the next person investigating this issue. I don't mind resuming my work on it if we wanna wait a week!
Configuration menu - View commit details
-
Copy full SHA for 092691a - Browse repository at this point
Copy the full SHA 092691aView commit details -
[Port] [2023.2] Use half instead of float on mobile for octahedral no…
…rmal packing functions. Fixes https://jira.unity3d.com/browse/UUM-62216, in which artifacts appear (looks like uninitialized memory) when using the accurate G-buffer normals feature when targeting mobile. This feature uses a pair for function for performing octrahedral encoding and decoding of normals. The function misbehaves when targeting mobile, but not desktop. The main difference between mobile and desktop in shadercode is that desktop treats `half` as float, whereas on mobile `half` actually works. The functions for octahedral encoding take `float`'s as input, and are given `half`'s in the mobile path. In the function, we use `abs()` on the input and then negate it. This combination seems to cause a miscompilation of some sort, presumably because `abs` and negation are both input modifiers rather than real instructions - I'm not entirely sure, but it's some mix of those 3 things - half to float conversion, abs and negation. The most minimal fix that worked was this: ``` float3 UnpackNormalOctQuadEncode(float2 f) { - float3 n = float3(f.x, f.y, 1.0 - abs(f.x) - abs(f.y)); + float3 n = float3(f.x, f.y, 1.0 - abs(real(f.x)) - abs(real(f.y))); ``` But I instead decided to change the functions to use `real` instead of `float` throughout, as it it seemed cleaner. `real` is just an alias for `half` on mobile and `float` on desktop.
Configuration menu - View commit details
-
Copy full SHA for 1c3e097 - Browse repository at this point
Copy the full SHA 1c3e097View commit details -
[Port] [2023.2] Add missing LightCookies keyword to screenspace decal…
… projector pass Fixes https://jira.unity3d.com/browse/UUM-54404, where screen space decals weren't taking into account light cookies. The code to sample cookies is already present in the relevant shader (a shader made with shadergraph decal template), but the keyword for light cookies, `_LIGHT_COOKIES` is not declared. The fix is simply to add the keyword to the relevant pass descriptor. The keyword will automatically be set earlier in the render loop, in `LightCookiesManager.Setup`.
Configuration menu - View commit details
-
Copy full SHA for f5d1c38 - Browse repository at this point
Copy the full SHA f5d1c38View commit details
Commits on Apr 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 112a71a - Browse repository at this point
Copy the full SHA 112a71aView commit details -
[Port] [2023.2] [URP] [2D] ShaderGraph Pass name is not generated whe…
…n the pass is "LightMode" = "Universal2D" Fix missing pass name https://jira.unity3d.com/browse/UUM-36358
Configuration menu - View commit details
-
Copy full SHA for 509a2b2 - Browse repository at this point
Copy the full SHA 509a2b2View commit details -
[Backport][2023.2][VFX] Keep activation slot visible when collapsing …
…a block Jira: UUM-59123 When a block is collapsed the activation slot is not visible anymore. Before: ![Unity_JyNrRODGTR](https://media.github.cds.internal.unity3d.com/user/4003/files/b9c5467d-f237-4e52-bd5c-2a9bad57bd26) After: ![Unity_2XV2CCHlve](https://media.github.cds.internal.unity3d.com/user/4003/files/c83c5751-7340-4546-8320-1a43bfd11d5a) Slack thread: https://unity.slack.com/archives/G1BTWN88Z/p1702479571472809
Configuration menu - View commit details
-
Copy full SHA for e7a1784 - Browse repository at this point
Copy the full SHA e7a1784View commit details -
Configuration menu - View commit details
-
Copy full SHA for c76c72f - Browse repository at this point
Copy the full SHA c76c72fView commit details -
[Port] [2023.2] Try to blind fix the NaN issue in fog
Fix NaN issue in volumetric fog reprojection
Configuration menu - View commit details
-
Copy full SHA for a96f634 - Browse repository at this point
Copy the full SHA a96f634View commit details
Commits on Apr 8, 2024
-
[2023.2][UUM-59543] Fix Light2D shader warnings
Fix shader warnings in URP 2D template
Configuration menu - View commit details
-
Copy full SHA for a32a45a - Browse repository at this point
Copy the full SHA a32a45aView commit details -
[Port] [2023.2] [UUM-31719] Set default orthographic for pixel perfec…
…t camera Set default projection orthographic for pixel perfect camera
Configuration menu - View commit details
-
Copy full SHA for 57a8fae - Browse repository at this point
Copy the full SHA 57a8faeView commit details -
- Bumped SRP packages from 16.0.5 to 16.0.6
Configuration menu - View commit details
-
Copy full SHA for 915f4ea - Browse repository at this point
Copy the full SHA 915f4eaView commit details -
[Port] [2023.2] Fix for the preview rendering issue (no default sky a…
…mbient) In the initial rendering of the preview in the inspector window, the ambient color of the default sky may not be ready (black ambient color), due to the lag of GPU readback of the SH coefficients. The ambient color is not updated until the preview is updated by some triggers like hovering the cursor over the inspector. This PR fixes the issue by using the hard-coded value of the default sky's SH.
Configuration menu - View commit details
-
Copy full SHA for e610241 - Browse repository at this point
Copy the full SHA e610241View commit details
Commits on Apr 9, 2024
-
[Backport][2023.2][VFX] Multiple gizmos in same node could not be sel…
…ected ### [UUM-52509](]https://jira.unity3d.com/browse/UUM-52509) Steps to repro 1. Create a new VFX Graph 2. Add position line sequential block 3. Connect to VFX to enable gizmos, in scene view select Line End gizmo 4. Move it, observe that it's still changing Line Start values Does not repro in a6. Possibly caused by https://github.cds.internal.unity3d.com/unity/unity/pull/32348
Configuration menu - View commit details
-
Copy full SHA for e591022 - Browse repository at this point
Copy the full SHA e591022View commit details
Commits on Apr 10, 2024
-
[Port] [2023.2] Fixed recorder with DRS
Fix a scaling issue with the recorder.
Configuration menu - View commit details
-
Copy full SHA for 8b75a8d - Browse repository at this point
Copy the full SHA 8b75a8dView commit details -
[Port] [2023.2] Update reflection probe atlas if probe runtime intens…
…ity changes https://jira.unity3d.com/browse/UUM-67982 The update logic in the reflection probe atlas was not taking into account the runtime intensity of non real-time probes
Configuration menu - View commit details
-
Copy full SHA for a5c4e53 - Browse repository at this point
Copy the full SHA a5c4e53View commit details -
[Backport 2023.2][HDRP] Fix clouds not affected by intensity multiplier
Backport of #47069
Configuration menu - View commit details
-
Copy full SHA for 475e9f1 - Browse repository at this point
Copy the full SHA 475e9f1View commit details