Class LightLoop
Syntax
Constructors
LightLoop()
Declaration
Fields
k_BoxCullingExtentThreshold
Declaration
public static readonly Vector3 k_BoxCullingExtentThreshold
Field Value
k_HasNativeQuadSupport
Declaration
public const bool k_HasNativeQuadSupport = false
Field Value
k_MaxAreaLightsOnScreen
Declaration
public const int k_MaxAreaLightsOnScreen = 64
Field Value
k_MaxDecalsOnScreen
Declaration
public const int k_MaxDecalsOnScreen = 512
Field Value
k_MaxDirectionalLightsOnScreen
Declaration
public const int k_MaxDirectionalLightsOnScreen = 16
Field Value
k_MaxEnvLightsOnScreen
Declaration
public const int k_MaxEnvLightsOnScreen = 64
Field Value
k_MaxLightsOnScreen
Declaration
public const int k_MaxLightsOnScreen = 656
Field Value
k_MaxPunctualLightsOnScreen
Declaration
public const int k_MaxPunctualLightsOnScreen = 512
Field Value
k_PreferFragment
Declaration
public static bool k_PreferFragment
Field Value
k_ThreadGroupOptimalSize
Declaration
public const int k_ThreadGroupOptimalSize = 64
Field Value
m_MaxAreaLightsOnScreen
Declaration
public int m_MaxAreaLightsOnScreen
Field Value
m_MaxDecalsOnScreen
Declaration
public int m_MaxDecalsOnScreen
Field Value
m_MaxDirectionalLightsOnScreen
Declaration
public int m_MaxDirectionalLightsOnScreen
Field Value
m_MaxEnvLightsOnScreen
Declaration
public int m_MaxEnvLightsOnScreen
Field Value
m_MaxLightsOnScreen
Declaration
public int m_MaxLightsOnScreen
Field Value
m_MaxPunctualLightsOnScreen
Declaration
public int m_MaxPunctualLightsOnScreen
Field Value
s_FlipMatrixLHSRHS
Declaration
public static readonly Matrix4x4 s_FlipMatrixLHSRHS
Field Value
| Type |
Description |
| Matrix4x4 |
|
s_UseCascadeBorders
Declaration
public static readonly bool s_UseCascadeBorders
Field Value
Properties
areaLightCookieManager
Declaration
public LTCAreaLightCookieManager areaLightCookieManager { get; }
Property Value
areaLightCount
Declaration
public int areaLightCount { get; }
Property Value
cookieTexArray
Declaration
public TextureCache2D cookieTexArray { get; }
Property Value
cubeCookieTexArray
Declaration
public TextureCacheCubemap cubeCookieTexArray { get; }
Property Value
directionalLightDatas
Declaration
public ComputeBuffer directionalLightDatas { get; }
Property Value
| Type |
Description |
| ComputeBuffer |
|
lightDatas
Declaration
public ComputeBuffer lightDatas { get; }
Property Value
| Type |
Description |
| ComputeBuffer |
|
Methods
AddBoxVolumeDataAndBound(OrientedBBox, LightCategory, LightFeatureFlags, Matrix4x4, Boolean)
Declaration
public void AddBoxVolumeDataAndBound(OrientedBBox obb, LightCategory category, LightFeatureFlags featureFlags, Matrix4x4 worldToView, bool xrInstancingEnabled)
Parameters
AllocResolutionDependentBuffers(Int32, Int32, Int32)
Declaration
public void AllocResolutionDependentBuffers(int width, int height, int viewCount)
Parameters
Build(HDRenderPipelineAsset, IBLFilterBSDF[])
Declaration
public void Build(HDRenderPipelineAsset hdAsset, IBLFilterBSDF[] iBLFilterBSDFArray)
Parameters
BuildGPULightLists(HDCamera, CommandBuffer, RenderTargetIdentifier, RenderTargetIdentifier, Boolean)
Declaration
public void BuildGPULightLists(HDCamera hdCamera, CommandBuffer cmd, RenderTargetIdentifier cameraDepthBufferRT, RenderTargetIdentifier stencilTextureRT, bool skyEnabled)
Parameters
| Type |
Name |
Description |
| HDCamera |
hdCamera |
|
| CommandBuffer |
cmd |
|
| RenderTargetIdentifier |
cameraDepthBufferRT |
|
| RenderTargetIdentifier |
stencilTextureRT |
|
| Boolean |
skyEnabled |
|
BuildGPULightListsCommon(HDCamera, CommandBuffer, RenderTargetIdentifier, RenderTargetIdentifier, Boolean)
Declaration
public void BuildGPULightListsCommon(HDCamera hdCamera, CommandBuffer cmd, RenderTargetIdentifier cameraDepthBufferRT, RenderTargetIdentifier stencilTextureRT, bool skyEnabled)
Parameters
| Type |
Name |
Description |
| HDCamera |
hdCamera |
|
| CommandBuffer |
cmd |
|
| RenderTargetIdentifier |
cameraDepthBufferRT |
|
| RenderTargetIdentifier |
stencilTextureRT |
|
| Boolean |
skyEnabled |
|
Cleanup()
Declaration
Declaration
public static void CopyStencilBufferForMaterialClassification(CommandBuffer cmd, RTHandleSystem.RTHandle depthStencilBuffer, RTHandleSystem.RTHandle stencilCopyBuffer, Material copyStencilMaterial)
Parameters
CopyStencilBufferIfNeeded(CommandBuffer, HDCamera, SharedRTManager)
Declaration
public void CopyStencilBufferIfNeeded(CommandBuffer cmd, HDCamera hdCamera, SharedRTManager sharedRTManager)
Parameters
GetBigTileLightList()
Declaration
public ComputeBuffer GetBigTileLightList()
Returns
| Type |
Description |
| ComputeBuffer |
|
Declaration
public int GetContactShadowMask(bool contactShadowEnabled)
Parameters
| Type |
Name |
Description |
| Boolean |
contactShadowEnabled |
|
Returns
GetCurrentShadowCount()
Declaration
public int GetCurrentShadowCount()
Returns
GetCurrentSunLight()
Declaration
public Light GetCurrentSunLight()
Returns
GetDirectionalLightData(CommandBuffer, GPULightType, VisibleLight, Light, HDAdditionalLightData, AdditionalShadowData, Int32, Int32, DebugDisplaySettings, Int32)
Declaration
public bool GetDirectionalLightData(CommandBuffer cmd, GPULightType gpuLightType, VisibleLight light, Light lightComponent, HDAdditionalLightData additionalLightData, AdditionalShadowData additionalShadowData, int lightIndex, int shadowIndex, DebugDisplaySettings debugDisplaySettings, int sortedIndex)
Parameters
Returns
GetEnvLightData(CommandBuffer, HDCamera, HDProbe, DebugDisplaySettings)
Declaration
public bool GetEnvLightData(CommandBuffer cmd, HDCamera hdCamera, HDProbe probe, DebugDisplaySettings debugDisplaySettings)
Parameters
Returns
GetEnvLightVolumeDataAndBound(HDProbe, LightVolumeType, Matrix4x4, Camera.StereoscopicEye)
Declaration
public void GetEnvLightVolumeDataAndBound(HDProbe probe, LightVolumeType lightVolumeType, Matrix4x4 worldToView, Camera.StereoscopicEye eyeIndex = null)
Parameters
| Type |
Name |
Description |
| HDProbe |
probe |
|
| LightVolumeType |
lightVolumeType |
|
| Matrix4x4 |
worldToView |
|
| Camera.StereoscopicEye |
eyeIndex |
|
GetFeatureVariantsEnabled()
Declaration
public bool GetFeatureVariantsEnabled()
Returns
GetLightColor(VisibleLight)
Declaration
public Vector3 GetLightColor(VisibleLight light)
Parameters
| Type |
Name |
Description |
| VisibleLight |
light |
|
Returns
GetLightData(CommandBuffer, HDShadowSettings, Camera, GPULightType, VisibleLight, Light, HDAdditionalLightData, AdditionalShadowData, Int32, Int32, ref Vector3, DebugDisplaySettings)
Declaration
public bool GetLightData(CommandBuffer cmd, HDShadowSettings shadowSettings, Camera camera, GPULightType gpuLightType, VisibleLight light, Light lightComponent, HDAdditionalLightData additionalLightData, AdditionalShadowData additionalShadowData, int lightIndex, int shadowIndex, ref Vector3 lightDimensions, DebugDisplaySettings debugDisplaySettings)
Parameters
Returns
GetLightVolumeDataAndBound(LightCategory, GPULightType, LightVolumeType, VisibleLight, LightData, Vector3, Matrix4x4, Camera.StereoscopicEye)
Declaration
public void GetLightVolumeDataAndBound(LightCategory lightCategory, GPULightType gpuLightType, LightVolumeType lightVolumeType, VisibleLight light, LightData lightData, Vector3 lightDimensions, Matrix4x4 worldToView, Camera.StereoscopicEye eyeIndex = null)
Parameters
GetNumTileBigTileX(HDCamera)
Declaration
public int GetNumTileBigTileX(HDCamera hdCamera)
Parameters
Returns
GetNumTileBigTileY(HDCamera)
Declaration
public int GetNumTileBigTileY(HDCamera hdCamera)
Parameters
Returns
GetNumTileFtplX(HDCamera)
Declaration
public int GetNumTileFtplX(HDCamera hdCamera)
Parameters
Returns
HasLightToCull()
Declaration
public bool HasLightToCull()
Returns
IsBakedShadowMaskLight(Light)
Declaration
public bool IsBakedShadowMaskLight(Light light)
Parameters
| Type |
Name |
Description |
| Light |
light |
|
Returns
NeedResize(Int32)
Declaration
public bool NeedResize(int viewCount)
Parameters
| Type |
Name |
Description |
| Int32 |
viewCount |
|
Returns
NewFrame(FrameSettings)
Declaration
public void NewFrame(FrameSettings frameSettings)
Parameters
PrepareLightsForGPU(CommandBuffer, HDCamera, CullingResults, HDProbeCullingResults, DensityVolumeList, DebugDisplaySettings, AOVRequestData)
Declaration
public bool PrepareLightsForGPU(CommandBuffer cmd, HDCamera hdCamera, CullingResults cullResults, HDProbeCullingResults hdProbeCullingResults, DensityVolumeList densityVolumes, DebugDisplaySettings debugDisplaySettings, AOVRequestData aovRequest)
Parameters
Returns
PushGlobalParams(HDCamera, CommandBuffer)
Declaration
public void PushGlobalParams(HDCamera hdCamera, CommandBuffer cmd)
Parameters
| Type |
Name |
Description |
| HDCamera |
hdCamera |
|
| CommandBuffer |
cmd |
|
ReleaseResolutionDependentBuffers()
Declaration
public void ReleaseResolutionDependentBuffers()
Declaration
public void RenderContactShadows(HDCamera hdCamera, RTHandleSystem.RTHandle contactShadowRT, RenderTargetIdentifier depthTexture, int firstMipOffsetY, CommandBuffer cmd)
Parameters
RenderDebugOverlay(HDCamera, CommandBuffer, DebugDisplaySettings, ref Single, ref Single, Single, Single, CullingResults, RTHandleSystem.RTHandle)
Declaration
public void RenderDebugOverlay(HDCamera hdCamera, CommandBuffer cmd, DebugDisplaySettings debugDisplaySettings, ref float x, ref float y, float overlaySize, float width, CullingResults cullResults, RTHandleSystem.RTHandle finalRT)
Parameters
RenderDeferredLighting(HDCamera, CommandBuffer, DebugDisplaySettings, RenderTargetIdentifier[], RenderTargetIdentifier, RenderTargetIdentifier, LightLoop.LightingPassOptions)
Declaration
public void RenderDeferredLighting(HDCamera hdCamera, CommandBuffer cmd, DebugDisplaySettings debugDisplaySettings, RenderTargetIdentifier[] colorBuffers, RenderTargetIdentifier depthStencilBuffer, RenderTargetIdentifier depthTexture, LightLoop.LightingPassOptions options)
Parameters
RenderForward(Camera, CommandBuffer, Boolean)
Declaration
public void RenderForward(Camera camera, CommandBuffer cmd, bool renderOpaque)
Parameters
| Type |
Name |
Description |
| Camera |
camera |
|
| CommandBuffer |
cmd |
|
| Boolean |
renderOpaque |
|
RenderScreenSpaceShadows(HDCamera, RTHandleSystem.RTHandle, CommandBuffer)
Declaration
public void RenderScreenSpaceShadows(HDCamera hdCamera, RTHandleSystem.RTHandle deferredShadowRT, CommandBuffer cmd)
Parameters
RenderShadows(ScriptableRenderContext, CommandBuffer, CullingResults, HDCamera)
Declaration
public void RenderShadows(ScriptableRenderContext renderContext, CommandBuffer cmd, CullingResults cullResults, HDCamera hdCamera)
Parameters
| Type |
Name |
Description |
| ScriptableRenderContext |
renderContext |
|
| CommandBuffer |
cmd |
|
| CullingResults |
cullResults |
|
| HDCamera |
hdCamera |
|
SetContactShadowsTexture(HDCamera, RTHandleSystem.RTHandle, CommandBuffer)
Declaration
public void SetContactShadowsTexture(HDCamera hdCamera, RTHandleSystem.RTHandle contactShadowsRT, CommandBuffer cmd)
Parameters
UpdateCullingParameters(ref ScriptableCullingParameters)
Declaration
public void UpdateCullingParameters(ref ScriptableCullingParameters cullingParams)
Parameters
| Type |
Name |
Description |
| ScriptableCullingParameters |
cullingParams |
|
UpdateStencilBufferForSSRExclusion(CommandBuffer, RTHandleSystem.RTHandle, RTHandleSystem.RTHandle, Material)
Declaration
public static void UpdateStencilBufferForSSRExclusion(CommandBuffer cmd, RTHandleSystem.RTHandle depthStencilBuffer, RTHandleSystem.RTHandle stencilCopyBuffer, Material copyStencilMaterial)
Parameters
Declaration
public bool WillRenderContactShadow()
Returns
WillRenderScreenSpaceShadows()
Declaration
public bool WillRenderScreenSpaceShadows()
Returns
WorldToCamera(Camera)
Declaration
public static Matrix4x4 WorldToCamera(Camera camera)
Parameters
| Type |
Name |
Description |
| Camera |
camera |
|
Returns
| Type |
Description |
| Matrix4x4 |
|