To create one of these assets, select Assets>Create>XR>LWRPBackgroundRendererAsset which should create the asset in your project folder. It also contains a LWRPBackgroundRendererAsset that is used to provide the renderer and its settings to ARFoundation. LWRPSupport folder contains shaders, materials and scripts that support the renderer above. There is some functionality in ARFoundation that was added to change the background renderer from the default behavior to use the CustomRendererAsset specified one.ģ. For more information on how this works, you can look at the source files in the LWRPSupport folder. This should setup everything you need to make your app render the scene properly with LWRP. Into this parameter, drag the LWRPBackgroundRendererAsset asset from the LWRPSupport folder. Check the “Use Custom Renderer Asset” on the component, which should reveal the “Custom Renderer Asset” parameter. ARFoundation has the concept of a CustomRenderAsset which you can enable on your ARCameraBackground component. Next, locate your ARCamera game object which lives under the ARSessionOrigin game object, and examine it in the Inspector. This contains all the components needed to support LWRP for ARFoundation background rendering.Ģ. There is a folder called LWRPSupport in the root. Fix these materials by replacing them with new materials that support LWRP. See (or for TLDR: create a LightweightRenderpipelineAsset and set it to the Renderpipeline parameter in Graphics settings).This might cause some of your existing materials to not work (even if you attempted to upgrade them). You must change your whole project to use LWRP. To make it work with an existing project, follow these steps:ġ. If you want to see a starter project that works with LWRP, open SampleLWRPScene using Unity 2018.3 and build it to your device - it should just work! The "lwrp-support" branch has a folder called LWRPSupport that has all the files needed. TLDR: "lwrp-support" branch on arfoundation-samples repo has been updated to support the latest LWRP 4.8.0-preview. See the former post about ARFoundation working on LWRP 3.3.0 for context.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |