Select your preferred scripting language. All code snippets will be displayed in this language.
struct in UnityEngine.Experimental.Rendering
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.Close
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.Close
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).
|visibleLights||Array of visible lights.|
|visibleOffscreenVertexLights||Off screen lights that still effect visible scene vertices.|
|visibleReflectionProbes||Array of visible reflection probes.|
|ComputeDirectionalShadowMatricesAndCullingPrimitives||Calculates the view and projection matrices and shadow split data for a directional light.|
|ComputePointShadowMatricesAndCullingPrimitives||Calculates the view and projection matrices and shadow split data for a point light.|
|ComputeSpotShadowMatricesAndCullingPrimitives||Calculates the view and projection matrices and shadow split data for a spot light.|
|FillLightIndices||Fills a compute buffer with per-object light indices.|
|GetLightIndexMap||If a RenderPipeline sorts or otherwise modifies the VisibleLight list, an index remap will be necessary to properly make use of per-object light lists.|
|GetLightIndicesCount||Gets the number of per-object light indices.|
|GetShadowCasterBounds||Returns the bounding box that encapsulates the visible shadow casters. Can be used to, for instance, dynamically adjust cascade ranges.|
|SetLightIndexMap||If 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.|
Did you find this page useful? Please give it a rating: