-
Notifications
You must be signed in to change notification settings - Fork 799
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/2021.3/staging #8108
Internal/2021.3/staging #8108
Commits on Sep 20, 2024
-
[Port] [2021.3] [HDRP] Fix sun flicker where the sun is close to clou…
…d boundaries. Jira: [UUM-70628](https://jira.unity3d.com/browse/UUM-70628) Parent PR: [#48000](https://github.cds.internal.unity3d.com/unity/unity/pull/48000) As reported in JIRA, the sun flicker problem occurs when the directional light is close to cloud boundaries. This can only be reproduced if `perceptual blending` is enabled on volumetric clouds. The transmittance of each pixel changes every frame due to ray marching noise and temporal reprojection. When perceptual blending is enabled, it divides the transmittance by the current luminance of the target pixel, so it reduces the RGB value dramatically when the luminance is really high. ![image](https://media.github.cds.internal.unity3d.com/user/3842/files/c2c067db-d228-4500-b28d-4f9d0295c004) When the `perceptual blending` is disabled, we simply use the original input transmittance, so that neighboring pixels have slightly different values. However, we reduce the transmittance by luminance when `perceptual blending` is enabled. This causes a huge pixel value change for neighboring pixels at the cloud boundaries, so the sun flickers. ![image](https://media.github.cds.internal.unity3d.com/user/3842/files/06816951-ac8b-4523-a0e6-36db227fc146) By softening the transmittance attenuation curve with a `pow(transmittance, 6)` clamp, we can prevent sun flicker and slightly improve the perceptual blending where the sun is behind the clouds. ![image](https://media.github.cds.internal.unity3d.com/user/3842/files/cce785be-a336-48b9-871b-aa53443c58b2) | Before | After | | -- | -- | | ![image](https://media.github.cds.internal.unity3d.com/user/3842/files/594c9648-dd7e-4fa0-aa72-4f4cd3643ac3)|![image](https://media.github.cds.internal.unity3d.com/user/3842/files/cb52d81c-82c6-4b7a-bdff-d8dda24d7bf6)|
Configuration menu - View commit details
-
Copy full SHA for cc08367 - Browse repository at this point
Copy the full SHA cc08367View commit details
Commits on Sep 24, 2024
-
[2021.3][URP] Disable depth priming for cameras with depth only rende…
…r targets(UUM-65523) Fixes UUM-65523. Backport of #46039
Configuration menu - View commit details
-
Copy full SHA for 45a6365 - Browse repository at this point
Copy the full SHA 45a6365View commit details
Commits on Oct 2, 2024
-
[2021][ShaderGraph] Remove exception from shader graph asset importer
Shader Graph importer can throw exceptions during asset import, which result in an asset state that is more difficult for a user to correct. I'm suppressing exceptions around precision mismatch between node dependencies, as in most cases this situation is neither reachable nor user actionable nor is the behavior actually erroneous.
Esmeralda Salamone authored and Evergreen committedOct 2, 2024 Configuration menu - View commit details
-
Copy full SHA for bcfdecf - Browse repository at this point
Copy the full SHA bcfdecfView commit details -
2021.3/backport/graphics/occlusion
PR-URL: #49436 Backport of https://jira.unity3d.com/browse/GFXFOUND-481
Configuration menu - View commit details
-
Copy full SHA for 0f84ba8 - Browse repository at this point
Copy the full SHA 0f84ba8View commit details
Commits on Oct 23, 2024
-
[Port] [2021.3] Fix broken links and formatting in Shader Graph docs …
…(DOCATT-589 and DOCATT-1045 *[This PR is intended to fix broken links and formatting issues in the Shader Graph documentation for the following JIRA tickets: - DOCATT-589 - DOCATT-1045 ]*
Configuration menu - View commit details
-
Copy full SHA for 5458e2d - Browse repository at this point
Copy the full SHA 5458e2dView commit details -
[Port] [2021.3] [UUM-64059] made ForwardLit and GBuffer passes of URP…
…'s speed tree shaders have the same c-buffer layout in vertex and fragment shaders when GPU instancing and Light Layer are enabled JIRA: [UUM-64059](https://jira.unity3d.com/browse/UUM-64059) This PR is to fix the error case where. shader compilation error logs about c-buffer layout mispatch in vertex and fragment shaders of URP speed tree 7 shader are repetitively printed out when the material enables GPU instancing and Use Rendering Layer in URP RP asset's lighting section is on. Because the speed tree shader is not compatible with SRP Batcher, the shader is supported by InstancingBatcher. When rendering request comes, the batcher collects layout informations about 'unity_Builtins0Array' through array of GPU program parameters defined by shader compilation result. For its vertex shader variant, `unity_LODFadeArray` is the first member of the c-buffer because the shader always enables `LOD_FADE_PERCENTAGE`. In addtion to that, `unity_RenderingLayerArray` becomes the second member because Light Layer, a `multi_compile` keyword is active, Unlikely, for its fragment shader variant, it still requires `unity_Builtins0Array`, but the `LOD_FADE_PERCENTAGE` keyword doesn't exist here, so the first member is determined to be `unity_RenderingLayerArray`, and the mismatch case occurs. For avoiding this, I simply changed their pragma action from `multi_compile_vertex` to `multi_compile`. And when I tested further, there are more places where the same problem happens, I applied this there too. So, affected places are... - `ForwardLit` pass in URP's SpeedTree7 shader - `GBuffer` pass in URP's SpeedTree7 shader - `ForwardLit` pass in URP's SpeedTree8 shader - `GBuffer` pass in URP's SpeedTree8 shader
Configuration menu - View commit details
-
Copy full SHA for b95e0e8 - Browse repository at this point
Copy the full SHA b95e0e8View commit details
Commits on Oct 29, 2024
-
[Port] [2021.3][URP] Fixing tooltips (UUM-83534)
Fixes UUM-83534.
Configuration menu - View commit details
-
Copy full SHA for 77326a5 - Browse repository at this point
Copy the full SHA 77326a5View commit details