Skip to content
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

Update to URP? #5

Open
ivanmotta opened this issue Dec 6, 2019 · 3 comments
Open

Update to URP? #5

ivanmotta opened this issue Dec 6, 2019 · 3 comments

Comments

@ivanmotta
Copy link

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?

@tomekkie
Copy link

tomekkie commented Feb 1, 2020

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".

@alfianridwan
Copy link

@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.

@tomekkie
Copy link

tomekkie commented May 21, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants