Version: 2017.2
Experimental: this API is experimental and might be changed or removed in the future.

CullResults

struct in UnityEngine.Experimental.Rendering

マニュアルに切り替える

説明

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

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

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

変数

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.
FillLightIndicesFills a compute buffer with per-object light indices.
GetLightIndicesCountGets the number of per-object light indices.
GetShadowCasterBoundsReturns the bounding box that encapsulates the visible shadow casters. Can be used to, for instance, dynamically adjust cascade ranges.

Static 関数

CullPerform culling for a Camera.
GetCullingParametersGet culling parameters for a camera.