Version: 2020.2
言語: 日本語

CullingResults

struct in UnityEngine.Rendering

マニュアルに切り替える

説明

Culling results (visible objects, lights, reflection probes).

In a scriptable render loop, the rendering process is typically doing culling for each camera (ScriptableRenderContext.Cull), followed by rendering subsets of visible objects (ScriptableRenderContext.DrawRenderers) and processing visible lights (visibleLights, visibleReflectionProbes).

CullingResults also provides several functions to aid shadow rendering (ComputeDirectionalShadowMatricesAndCullingPrimitives, ComputeSpotShadowMatricesAndCullingPrimitives, ComputePointShadowMatricesAndCullingPrimitives).

変数

lightAndReflectionProbeIndexCountGets the number of per-object light and reflection probe indices.
lightIndexCountGets the number of per-object light indices.
reflectionProbeIndexCountGets the number of per-object reflection probe indices.
visibleLightsArray of visible lights.
visibleOffscreenVertexLightsOff screen lights that still effect visible Scene vertices.
visibleReflectionProbesArray of visible reflection probes.

Public 関数

ComputeDirectionalShadowMatricesAndCullingPrimitivesCalculates the view and projection matrices and shadow split data for a directional light.
ComputePointShadowMatricesAndCullingPrimitivesCalculates the view and projection matrices and shadow split data for a point light.
ComputeSpotShadowMatricesAndCullingPrimitivesCalculates the view and projection matrices and shadow split data for a spot light.
FillLightAndReflectionProbeIndicesFills a buffer with per-object light indices.
GetLightIndexMapIf a RenderPipeline sorts or otherwise modifies the VisibleLight list, an index remap will be necessary to properly make use of per-object light lists.
GetReflectionProbeIndexMapIf a RenderPipeline sorts or otherwise modifies the VisibleReflectionProbe list, an index remap will be necessary to properly make use of per-object reflection probe lists.
GetShadowCasterBoundsReturns the bounding box that encapsulates the visible shadow casters. Can be used to, for instance, dynamically adjust cascade ranges.
SetLightIndexMapIf a RenderPipeline sorts or otherwise modifies the VisibleLight list, an index remap will be necessary to properly make use of per-object light lists. If an element of the array is set to -1, the light corresponding to that element will be disabled.
SetReflectionProbeIndexMapIf a RenderPipeline sorts or otherwise modifies the VisibleReflectionProbe list, an index remap will be necessary to properly make use of per-object reflection probe lists. If an element of the array is set to -1, the reflection probe corresponding to that element will be disabled.