ExtendingLWRP icon indicating copy to clipboard operation
ExtendingLWRP copied to clipboard

Update to URP?

Open ivanmotta opened this issue 6 years ago • 3 comments

Hi there! I was trying to convert these examples to URP as of 2019.3.0f1 but had no success. Would you, please, try to update it?

ivanmotta avatar Dec 06 '19 18:12 ivanmotta

BlurryRefractions do work in URP (2019.3.0f6), but selective Bloom does not. Then there are errors on the scripts attached to camera" The script 'GrabBlurPass' does not derive from MonoBehaviour, but has been added to Game Object 'Main Camera'. Please remove the script from the Game Object to avoid crashes. The script 'PerObjectBloomPass' does not derive from MonoBehaviour, but has been added to Game Object 'Main Camera'. Please remove the script from the Game Object to avoid crashes.

This is because the PostProcessLayer is not working in URP. So I have got it working by converting the PerObjectBloom.cs to ScriptableRendererFeature.

The PerObjectBloomPass, which is ScriptableRendererFeature, gets converted automatically, then you need to manually change ShaderTagId from "LightWeightForward" to "UniversalForward".

tomekkie avatar Feb 01 '20 06:02 tomekkie

@tomekkie Hi, can you share how to convert PerObjectBloom.cs to a ScriptableRendereFeature and change ShadeTagId from LightWeightForward to UniversalForward?

My project needs URP and I'm tryint o get this to work. I'm pretty new to Unity so any help is appreciated.

alfianridwan avatar May 20 '23 15:05 alfianridwan

Go to the master branch https://github.com/Unity-Technologies/UniversalRenderingExamples/tree/master. It says there this is already updated to URP 10.x.x. and Unity 2020.1.0a18. You can also take a look at my free asset https://assetstore.unity.com/packages/vfx/shaders/world-space-fading-transitions-98207, where I used some modified version of this bloom effect in the asset demo scenes for urp. It works in Unity 2020.3.0f1 and URP 10.3.2 there.

tomekkie avatar May 21 '23 08:05 tomekkie