Class HDAdditionalMeshRendererSettings
Component containing additional mesh rendering features for HDRP.
Inherited Members
Namespace: UnityEngine.Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
[AddComponentMenu("Mesh/Mesh Renderer Extension")]
[RequireComponent(typeof(MeshRenderer))]
[RequireComponent(typeof(MeshFilter))]
[ExecuteAlways]
public class HDAdditionalMeshRendererSettings : MonoBehaviour
Properties
enableHighQualityLineRendering
Set the enablement of high quality line rendering for this mesh renderer.
Declaration
public bool enableHighQualityLineRendering { get; set; }
Property Value
Type | Description |
---|---|
bool |
rendererGroup
Sets the high quality line rendering merge group for this mesh renderer.
Declaration
public LineRendering.RendererGroup rendererGroup { get; set; }
Property Value
Type | Description |
---|---|
LineRendering.RendererGroup |
rendererLODCameraDistanceCurve
Sets the high quality line rendering level of detail curve for this mesh renderer.
Declaration
public AnimationCurve rendererLODCameraDistanceCurve { get; set; }
Property Value
Type | Description |
---|---|
AnimationCurve |
rendererLODFixed
Sets the high quality line rendering fixed level of detail for this mesh renderer.
Declaration
public float rendererLODFixed { get; set; }
Property Value
Type | Description |
---|---|
float |
rendererLODMode
Sets the high quality line rendering level of detail mode for this mesh renderer.
Declaration
public LineRendering.RendererLODMode rendererLODMode { get; set; }
Property Value
Type | Description |
---|---|
LineRendering.RendererLODMode |
rendererLODScreenCoverageCurve
Sets the high quality line rendering level of detail curve for this mesh renderer.
Declaration
public AnimationCurve rendererLODScreenCoverageCurve { get; set; }
Property Value
Type | Description |
---|---|
AnimationCurve |
shadingSampleFraction
Sets the high quality line rendering shading rate for this mesh renderer.
Declaration
public float shadingSampleFraction { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
GetLineRendererData(RenderGraph, Camera)
Extracts the required rendering data for line rendering.
Declaration
public LineRendering.RendererData GetLineRendererData(RenderGraph renderGraph, Camera camera)
Parameters
Type | Name | Description |
---|---|---|
RenderGraph | renderGraph | Render Graph |
Camera | camera | The camera for which the line rendering is being gathered. |
Returns
Type | Description |
---|---|
LineRendering.RendererData |
LineRendererIsValid()
Determines if this mesh renderer is valid for high quality line rendering.
Declaration
public bool LineRendererIsValid()
Returns
Type | Description |
---|---|
bool |