Page 1 of 1

Unity LWRP

PostPosted: Tue Dec 04, 2018 2:27 pm
by Takamba
Hi

First of all, I am quite new to the shader universe….

I have a custom water shader made with the Amplify Shader Editor.
In blend mode, render type and render queue set to transparent.

Now, I would like to use this shader in a project with Lightweight Render Pipeline.

How do I need to setup my custom water shader to be compatible with LWRP?
Do I need to change anything else?

Any help is much appreciated as I am just beginning to earn about shaders.

Regards,
Phil

Re: Unity LWRP

PostPosted: Fri Dec 07, 2018 4:46 pm
by Amplify_Borba
Hello!

First of all, I'd recommend that you back up your original shader!

After doing so, depending on which version of the LW RP you're using, you'll have to extract the proper template from within the Assets > AmplifyShaderEditor > Plugins > EditorResources > Templates > SRP folder:

- LWSRPTemplates (Legacy).unitypackage for LW RP 3.0.0 and below
- LWSRPTemplates.unitypackage for LW RP 4.0.0 and above

The recommended steps to be taken for setting this up on a new project would be:

- Import ASE
- Import the LWRP through Unity's Package Manager
- Creat and add the LightweightAsset to the Project Settings
- Extract the LWSRPTemplates package corresponding to the imported LW RP version

You can find more information in our wiki manual.

After that, you'll need to switch your Shader Type to Lightweight PBR, so that it uses our shader template that supports the LW RP:

Image

And finally connect the nodes to the respective ports, while also setting the Output Node's parameters according to the original shader.

Please let me know if this helps, thanks!