Skip to content

Commit

Permalink
Merge pull request #8060 from Unity-Technologies/internal/2022.3/staging
Browse files Browse the repository at this point in the history
Internal/2022.3/staging
  • Loading branch information
UnityAljosha authored Apr 11, 2024
2 parents 0581f45 + 948d39d commit 0c658a0
Show file tree
Hide file tree
Showing 90 changed files with 1,851 additions and 243 deletions.
9 changes: 9 additions & 0 deletions Packages/com.unity.render-pipelines.core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Changelog

All notable changes to this package will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
Expand All @@ -9,6 +10,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
Version Updated
The version number for this package has increased due to a version update of a related graphics package.

## [14.0.10] - 2024-04-03

This version is compatible with Unity 2022.3.24f1.

### Fixed
- Fixed lens flare occlusion format support test.
- Fixed DebugUI.Button not working in Rendering Debugger runtime UI.

## [14.0.9] - 2023-12-21

This version is compatible with Unity 2022.3.18f1.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ public void DrawHeaders(MaterialEditor materialEditor, Material material)

EditorGUILayout.Space();
}

// Reset label width back to the default of 0 (fix UUM-66215)
// NOTE: Because of how EditorGUIUtility.labelWidth works, when the internal value is 0,
// we cannot read that value back from the property getter. So we just set it to 0 here.
EditorGUIUtility.labelWidth = 0;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __ACES__
#define __ACES__

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (disable : 3205) // conversion of larger type to smaller
#endif

Expand Down Expand Up @@ -1513,7 +1513,7 @@ half3 ODT_4000nits_ToAP1(half3 oces)

return rgbPost;
}
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (enable : 3205) // conversion of larger type to smaller
#endif

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef UNITY_BSDF_INCLUDED
#define UNITY_BSDF_INCLUDED

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (disable : 3205) // conversion of larger type to smaller
#endif

Expand Down Expand Up @@ -658,7 +658,7 @@ real3 D_KajiyaKay(real3 T, real3 H, real specularExponent)
return dirAttn * norm * PositivePow(sinTHSq, 0.5 * n);
}

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (enable : 3205) // conversion of larger type to smaller
#endif

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef UNITY_COLOR_INCLUDED
#define UNITY_COLOR_INCLUDED

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (disable : 3205) // conversion of larger type to smaller
#endif

Expand Down Expand Up @@ -728,7 +728,7 @@ half3 DecodeRGBM(half4 rgbm)
return rgbm.xyz * rgbm.w * kRGBMRange;
}

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (enable : 3205) // conversion of larger type to smaller
#endif

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef UNITY_COMMON_INCLUDED
#define UNITY_COMMON_INCLUDED

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (disable : 3205) // conversion of larger type to smaller
#endif

Expand Down Expand Up @@ -1618,7 +1618,7 @@ float SharpenAlpha(float alpha, float alphaClipTreshold)
// These clamping function to max of floating point 16 bit are use to prevent INF in code in case of extreme value
TEMPLATE_1_REAL(ClampToFloat16Max, value, return min(value, HALF_MAX))

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (enable : 3205) // conversion of larger type to smaller
#endif

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef UNITY_COMMON_LIGHTING_INCLUDED
#define UNITY_COMMON_LIGHTING_INCLUDED

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (disable : 3205) // conversion of larger type to smaller
#endif

Expand Down Expand Up @@ -503,7 +503,7 @@ bool IsMatchingLightLayer(uint lightLayers, uint renderingLayers)
return (lightLayers & renderingLayers) != 0;
}

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (enable : 3205) // conversion of larger type to smaller
#endif

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef UNITY_COMMON_MATERIAL_INCLUDED
#define UNITY_COMMON_MATERIAL_INCLUDED

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (disable : 3205) // conversion of larger type to smaller
#endif

Expand Down Expand Up @@ -363,7 +363,7 @@ real3 LerpWhiteTo(real3 b, real t)
}
#endif

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (enable : 3205) // conversion of larger type to smaller
#endif

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef UNITY_ENTITY_LIGHTING_INCLUDED
#define UNITY_ENTITY_LIGHTING_INCLUDED

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (disable : 3205) // conversion of larger type to smaller
#endif

Expand Down Expand Up @@ -281,7 +281,7 @@ real3 SampleDirectionalLightmap(TEXTURE2D_LIGHTMAP_PARAM(lightmapTex, lightmapSa
return bakeDiffuseLighting;
}

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (enable : 3205) // conversion of larger type to smaller
#endif

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef UNITY_IMAGE_BASED_LIGHTING_HLSL_INCLUDED
#define UNITY_IMAGE_BASED_LIGHTING_HLSL_INCLUDED

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (disable : 3205) // conversion of larger type to smaller
#endif

Expand Down Expand Up @@ -706,7 +706,7 @@ float InfluenceFadeNormalWeight(float3 normal, float3 centerToPos)
return saturate((-1.0f / 0.4f) * dot(normal, centerToPos) + (0.6f / 0.4f));
}

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (enable : 3205) // conversion of larger type to smaller
#endif

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef UNITY_PACKING_INCLUDED
#define UNITY_PACKING_INCLUDED

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (disable : 3205) // conversion of larger type to smaller
#endif

Expand Down Expand Up @@ -54,7 +54,7 @@ real3 UnpackNormalOctRectEncode(real2 f)
// Ref: http://jcgt.org/published/0003/02/01/paper.pdf "A Survey of Efficient Representations for Independent Unit Vectors"
// Encode with Oct, this function work with any size of output
// return float between [-1, 1]
float2 PackNormalOctQuadEncode(float3 n)
real2 PackNormalOctQuadEncode(float3 n)
{
//float l1norm = dot(abs(n), 1.0);
//float2 res0 = n.xy * (1.0 / l1norm);
Expand All @@ -64,20 +64,20 @@ float2 PackNormalOctQuadEncode(float3 n)

// Optimized version of above code:
n *= rcp(max(dot(abs(n), 1.0), 1e-6));
float t = saturate(-n.z);
return n.xy + float2(n.x >= 0.0 ? t : -t, n.y >= 0.0 ? t : -t);
real t = saturate(-n.z);
return n.xy + real2(n.x >= 0.0 ? t : -t, n.y >= 0.0 ? t : -t);
}

float3 UnpackNormalOctQuadEncode(float2 f)
real3 UnpackNormalOctQuadEncode(real2 f)
{
float3 n = float3(f.x, f.y, 1.0 - abs(f.x) - abs(f.y));
real3 n = real3(f.x, f.y, 1.0 - abs(f.x) - abs(f.y));

//float2 val = 1.0 - abs(n.yx);
//n.xy = (n.zz < float2(0.0, 0.0) ? (n.xy >= 0.0 ? val : -val) : n.xy);

// Optimized version of above code:
float t = max(-n.z, 0.0);
n.xy += float2(n.x >= 0.0 ? -t : t, n.y >= 0.0 ? -t : t);
real t = max(-n.z, 0.0);
n.xy += real2(n.x >= 0.0 ? -t : t, n.y >= 0.0 ? -t : t);

return normalize(n);
}
Expand Down Expand Up @@ -599,7 +599,7 @@ float2 Unpack8ToFloat2(float f)
return float2(x, y);
}

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (enable : 3205) // conversion of larger type to smaller
#endif

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef UNITY_FIBONACCI_INCLUDED
#define UNITY_FIBONACCI_INCLUDED

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (disable : 3205) // conversion of larger type to smaller
#endif

Expand Down Expand Up @@ -299,7 +299,7 @@ real2 SampleSphereFibonacci(uint i, uint sampleCount)
return real2(1 - 2 * f.x, TWO_PI * f.y);
}

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (enable : 3205) // conversion of larger type to smaller
#endif

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef UNITY_HAMMERSLEY_INCLUDED
#define UNITY_HAMMERSLEY_INCLUDED

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (disable : 3205) // conversion of larger type to smaller
#endif

Expand Down Expand Up @@ -437,7 +437,7 @@ real2 Hammersley2d(uint i, uint sampleCount)
}
}

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (enable : 3205) // conversion of larger type to smaller
#endif

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef UNITY_SAMPLING_INCLUDED
#define UNITY_SAMPLING_INCLUDED

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (disable : 3205) // conversion of larger type to smaller
#endif

Expand Down Expand Up @@ -322,7 +322,7 @@ real3 SampleConeStrata(uint sampleIdx, real rcpSampleCount, real cosHalfApexAngl
return real3(r * cphi, r * sphi, z);
}

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (enable : 3205) // conversion of larger type to smaller
#endif

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef UNITY_SPACE_TRANSFORMS_INCLUDED
#define UNITY_SPACE_TRANSFORMS_INCLUDED

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (disable : 3205) // conversion of larger type to smaller
#endif

Expand Down Expand Up @@ -340,7 +340,7 @@ real3 TransformObjectToTangent(real3 dirOS, real3x3 tangentToWorld)
return TransformWorldToTangent(normalWS, tangentToWorld);
}

#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3
#if SHADER_API_MOBILE || SHADER_API_GLES || SHADER_API_GLES3 || SHADER_API_SWITCH
#pragma warning (enable : 3205) // conversion of larger type to smaller
#endif

Expand Down
2 changes: 1 addition & 1 deletion Packages/com.unity.render-pipelines.core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.unity.render-pipelines.core",
"description": "SRP Core makes it easier to create or customize a Scriptable Render Pipeline (SRP). SRP Core contains reusable code, including boilerplate code for working with platform-specific graphics APIs, utility functions for common rendering operations, and shader libraries. The code in SRP Core is use by the High Definition Render Pipeline (HDRP) and Universal Render Pipeline (URP). If you are creating a custom SRP from scratch or customizing a prebuilt SRP, using SRP Core will save you time.",
"version": "14.0.10",
"version": "14.0.11",
"unity": "2022.3",
"displayName": "Core RP Library",
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Changelog

All notable changes to this package will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
Expand All @@ -9,6 +10,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
Version Updated
The version number for this package has increased due to a version update of a related graphics package.

## [14.0.10] - 2024-04-03

This version is compatible with Unity 2022.3.24f1.

Version Updated
The version number for this package has increased due to a version update of a related graphics package.

## [14.0.9] - 2023-12-21

This version is compatible with Unity 2022.3.18f1.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "com.unity.render-pipelines.high-definition-config",
"description": "Configuration files for the High Definition Render Pipeline.",
"version": "14.0.10",
"version": "14.0.11",
"unity": "2022.3",
"displayName": "High Definition RP Config",
"dependencies": {
"com.unity.render-pipelines.core": "14.0.10"
"com.unity.render-pipelines.core": "14.0.11"
}
}
24 changes: 24 additions & 0 deletions Packages/com.unity.render-pipelines.high-definition/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Changelog

All notable changes to this package will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
Expand All @@ -9,6 +10,29 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
Version Updated
The version number for this package has increased due to a version update of a related graphics package.

## [14.0.10] - 2024-04-03

This version is compatible with Unity 2022.3.24f1.

### Changed
- Improved performance entering and leaving playmode for scenes containing large numbers of decal projectors.
- Improved scene culling performance when APV is enabled in the project.

### Fixed
- Removed screen space overlay UI being rendered in offscreen camera.
- Fixed XR texture 2D creation failure due to invalid slice configuration. The slice is misconfigured to 2 when creating Texture2D, causing internal failures.
- Optimize the OnDisable of DecalProjector component when disabling a lot of decals at the same time.
- Removed the error message "Decal texture atlas out of space..." in release builds (it now only appears in the Editor or Development Builds).
- Fixed artifacts on low resolution SSGI when dynamic resolution values are low.
- Fixed internally created Game Objects being deallocated on scene changes.
- Fixed misuse of ternary operators in shaders.
- Fixed a NaN issue in volumetric fog reprojection causing black to propagate in the fog.
- Fixed invalid AABB error in the console when using the APV with reflection probes.
- Fixed a scaling issue with the recorder.
- Restore `EditorGUIUtility.labelWidth` to default after drawing Material GUI.
- Fix specular blend in premultiplied alpha
- Fixed screen node not returning correct resolution after post-processing when dynamic resolution is enabled.

## [14.0.9] - 2023-12-21

This version is compatible with Unity 2022.3.18f1.
Expand Down
Loading

0 comments on commit 0c658a0

Please sign in to comment.