Class ScreenSpaceReflection
A volume component that holds settings for screen space reflection and ray traced reflections.
Inheritance
Implements
Inherited Members
Namespace: UnityEngine.Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
[Serializable]
[VolumeComponentMenu("Lighting/Screen Space Reflection")]
[SupportedOnRenderPipeline(typeof(HDRenderPipelineAsset))]
public class ScreenSpaceReflection : VolumeComponentWithQuality, IApplyRevertPropertyContextMenuItemProvider
Fields
Name | Description |
---|---|
accumulationFactor | Controls the amount of accumulation (0 no accumulation, 1 just accumulate) |
ambientProbeDimmer | Controls the dimmer applied to the ambient and legacy light probes. |
biasFactor | For PBR: Controls the bias of accumulation (0 no bias, 1 bias ssr) |
bounceCount | Number of bounces for reflection rays. |
depthBufferThickness | Controls the distance at which HDRP fades out SSR near the edge of the screen. |
enableWorldSpeedRejection | When enabled, world space speed from Motion vector is used to reject samples. |
enabled | Enable Screen Space Reflections. |
enabledTransparent | Enable Transparent Screen Space Reflections. |
lastBounceFallbackHierarchy | Controls the fallback hierarchy for lighting the last bounce. |
layerMask | Layer mask used to include the objects for screen space reflection. |
mode | Controls which version of the effect should be used. |
rayMiss | Controls which sources are used to fallback on when the traced ray misses. |
reflectSky | When enabled, SSR handles sky reflection for opaque objects (not supported for SSR on transparent). |
sampleCount | Number of samples for reflections. |
screenFadeDistance | Controls the typical thickness of objects the reflection rays may pass behind. |
speedRejectionParam | Controls the likelihood history will be rejected based on the previous frame motion vectors of both the surface and the hit object in world space. |
speedRejectionScalerFactor | Controls the upper range of speed. The faster the objects or camera are moving, the higher this number should be. |
speedSmoothReject | When enabled, history can be partially rejected for moving objects which gives a smoother transition. When disabled, history is either kept or totally rejected. |
speedSurfaceOnly | When enabled, speed rejection used world space motion of the reflecting surface. |
speedTargetOnly | When enabled, speed rejection used world space motion of the hit surface by the SSR. |
textureLodBias | Defines the LOD Bias for sampling all the textures. |
tracing | |
usedAlgorithm | Screen Space Reflections Algorithm used. |
Properties
Name | Description |
---|---|
affectSmoothSurfaces | Controls if the denoising should affect pefectly smooth surfaces |
clampValue | Clamps the exposed intensity, this only affects reflections on opaque objects. |
denoise | Enable denoising on the ray traced reflections. |
denoiserRadius | Controls the radius of reflection denoiser. |
fullResolution | Defines if the effect should be evaluated at full resolution. |
minSmoothness | Controls the smoothness value at which HDRP activates SSR and the smoothness-controlled fade out stops. |
rayLength | Controls the length of reflection rays in meters. |
rayMaxIterations | Sets the maximum number of steps HDRP uses for raytracing. Affects both correctness and performance. |
rayMaxIterationsRT | Sets the maximum number of steps HDRP uses for mixed tracing. Affects both correctness and performance. |
smoothnessFadeStart | Controls the smoothness value at which the smoothness-controlled fade out starts. The fade is in the range [Min Smoothness, Smoothness Fade Start] |