docs.unity.cn
    Show / Hide Table of Contents

    Struct LineRendering.RendererData

    Container for parameters defining a renderable instance for the line rendering system.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.Rendering
    Syntax
    [Serializable]
    public struct RendererData

    Fields

    bounds

    Bounds of the renderer

    Declaration
    public Bounds bounds
    Field Value
    Type Description
    Bounds

    distanceToCamera

    Distance to camera for sorting purposes.

    Declaration
    public float distanceToCamera
    Field Value
    Type Description
    Single

    group

    Merging group for sorting between multiple renderer datas.

    Declaration
    public LineRendering.RendererGroup group
    Field Value
    Type Description
    LineRendering.RendererGroup

    hash

    Unique identifier for the renderer data.

    Declaration
    public int hash
    Field Value
    Type Description
    Int32

    indexBuffer

    Handle to the line topology's index buffer resource.

    Declaration
    public BufferHandle indexBuffer
    Field Value
    Type Description
    BufferHandle

    lineCount

    The number of lines in the mesh.

    Declaration
    public int lineCount
    Field Value
    Type Description
    Int32

    lod

    Percentage of strands to render.

    Declaration
    public float lod
    Field Value
    Type Description
    Single

    lodBuffer

    Handle to a buffer for computing level of detail.

    Declaration
    public BufferHandle lodBuffer
    Field Value
    Type Description
    BufferHandle

    lodMode

    Level of detail mode.

    Declaration
    public LineRendering.RendererLODMode lodMode
    Field Value
    Type Description
    LineRendering.RendererLODMode

    material

    Material to draw the lines.

    Declaration
    public Material material
    Field Value
    Type Description
    Material

    matrixW

    World Matrix.

    Declaration
    public Matrix4x4 matrixW
    Field Value
    Type Description
    Matrix4x4

    matrixWP

    Previous World Matrix.

    Declaration
    public Matrix4x4 matrixWP
    Field Value
    Type Description
    Matrix4x4

    mesh

    Mesh with line topology.

    Declaration
    public Mesh mesh
    Field Value
    Type Description
    Mesh

    motionVectorParams

    Motion vector parameters.

    Declaration
    public Vector4 motionVectorParams
    Field Value
    Type Description
    Vector4

    offscreenShadingPass

    Offscreen shading pass index.

    Declaration
    public int offscreenShadingPass
    Field Value
    Type Description
    Int32

    probe

    Spherical harmonic coefficients for probe lighting.

    Declaration
    public SphericalHarmonicsL2 probe
    Field Value
    Type Description
    SphericalHarmonicsL2

    renderingLayerMask

    Rendering mask.

    Declaration
    public uint renderingLayerMask
    Field Value
    Type Description
    UInt32

    segmentsPerLine

    The number of segments-per-line.

    Declaration
    public int segmentsPerLine
    Field Value
    Type Description
    Int32

    shadingFraction

    Percentage of shading samples to compute.

    Declaration
    public float shadingFraction
    Field Value
    Type Description
    Single

    vertexSetupCompute

    Compute asset for computing the vertex shader in a compute shader.

    Declaration
    public ComputeShader vertexSetupCompute
    Field Value
    Type Description
    ComputeShader
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023