Use high quality line rendering
To use this feature in your Scene, you must first enable it for your project and then enable it for your Cameras. To enable features in your project, you use the HDRP Asset and to enable features for your Cameras, you use Frame Settings. You can enable features either for all Cameras, using the Default Frame Settings, or for specific Cameras, by overriding each Camera's individual Frame Settings.
- To enable High Quality Line Rendering in your HDRP Asset go to Rendering > High Quality Line Rendering.
- To enable High Quality Line Rendering in your Frame Settings go to Edit > Project Settings > Graphics > HDRP Global Settings > Frame Settings (Default Values) > Camera > Rendering > High Quality Line Rendering.
Using High Quality Line Rendering
Once you've enabled High Quality Line Rendering in your project, follow these steps to render high quality lines in your scene:
- In the Scene or Hierarchy window, select a GameObject that contains a Volume component to view it in the Inspector.
- In the Inspector, navigate to Add Override > Rendering and select High Quality Lines. HDRP now applies High Quality Line Rendering to any Camera this Volume affects.
- In the Scene or Hierarchy view, select a GameObject that contains a Mesh Renderer component.
- In the Inspector, navigate to Add Component, then find and add the Mesh Renderer Extension component.
Unity warns you if there is any configuration issue with your GameObject that prevents High Quality Line Rendering:
- If you're warned about the Topology, ensure that the mesh connected to your MeshFilter component is composed of LineTopology.
- If you're warned about the Material, open your Material's shader graph and enable Support High Quality Line Rendering in the Master Stack.
You can use the Rendering Debugger to visualize the underlying data used to calculate the high quality lines.
Refer to the following for more information: