forked from BilalY/Rasagar
2.0 KiB
2.0 KiB
Use high quality line rendering
- 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 > Pipeline Specific Settings > HDRP > 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: