This page describes how to upgrade from an older version of the Universal Render Pipeline (URP) to version 2022.1. An error will be issued when instances of The If your code uses For example the following use: should become: The Universal Renderer is now using All uses of The public interfaces
The following helper functions have been added in order to create and use
If the target is known to not change within the lifetime of the application, then simply a If the target is a fullscreen texture, meaning that its resolution matches the resolution or a fraction of it, the use of
a scaling factor such as For example, the following
should become:
Upgrading from URP 11.x.x
Upgrading from URP 10.0.x–10.2.x
Upgrading from URP 7.2.x and later releases
DepthNormals PassStarting from
version 10.0.x, URP can generate a normal texture called Screen Space Ambient Occlusion (SSAO)URP 10.0.x implements the Screen Space Ambient Occlusion (SSAO) effect. If you intend to use the SSAO effect with your custom shaders, consider the following entities related to SSAO:
To support SSAO in custom shader, add the If your custom shader implements custom lighting functions, use the function Shadow Normal BiasIn 11.0.x the formula used to apply Shadow Normal Bias has been slightly fix in order to work better with punctual lights. As a result, to match exactly shadow outlines from earlier revisions, the parameter might to be adjusted in some scenes. Typically, using 1.4 instead of 1.0 for a Directional light is usually enough. Intermediate TextureIn previous URP versions, URP performed the rendering via an intermediate Renderer if the Renderer had any active Renderer Features. On some platforms, this had significant performance implications. In this release, URP mitigates the issue in the following way: URP expects Renderer Features to declare their inputs using the For compatibility purpose, there is a new property Intermediate Texture in the Universal Renderer. If you select Always in the property, URP uses an intermediate texture. Selecting Auto enables the new behavior. Use the Always option only if a Renderer Feature does not declare its inputs using the To ensure that existing projects work correctly, all existing Universal Renderer assets that were using any Renderer Features (excluding those included with URP) have the option Always selected in the Intermediate Texture property. Any newly created Universal Renderer assets have the option Auto selected. Upgrading from URP 7.0.x-7.1.x
Upgrading from LWRP to 12.x.x
|