Class ScreenSpaceReflection
A volume component that holds settings for screen space reflection and ray traced reflections.
Inheritance
Inherited Members
Namespace: UnityEngine.Rendering.HighDefinition
Syntax
[Serializable]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.render-pipelines.high-definition@10.3/manual/Override-Screen-Space-Reflection.html")]
public class ScreenSpaceReflection : VolumeComponentWithQuality
Fields
accumulationFactor
Controls the amount of accumulation (0 no accumulation, 1 just accumulate)
Declaration
public ClampedFloatParameter accumulationFactor
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.ClampedFloatParameter |
bounceCount
Number of bounces for reflection rays.
Declaration
public ClampedIntParameter bounceCount
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.ClampedIntParameter |
depthBufferThickness
Controls the distance at which HDRP fades out SSR near the edge of the screen.
Declaration
public ClampedFloatParameter depthBufferThickness
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.ClampedFloatParameter |
enabled
Enable Screen Space Reflections.
Declaration
[Tooltip("Enable Screen Space Reflections.")]
public BoolParameter enabled
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.BoolParameter |
layerMask
Layer mask used to include the objects for screen space reflection.
Declaration
public LayerMaskParameter layerMask
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.LayerMaskParameter |
mode
Controls which version of the effect should be used.
Declaration
public RayTracingModeParameter mode
Field Value
Type | Description |
---|---|
RayTracingModeParameter |
rayTracing
Enable ray traced reflections.
Declaration
public BoolParameter rayTracing
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.BoolParameter |
reflectSky
When enabled, SSR handles sky reflection.
Declaration
public BoolParameter reflectSky
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.BoolParameter |
sampleCount
Number of samples for reflections.
Declaration
public ClampedIntParameter sampleCount
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.ClampedIntParameter |
screenFadeDistance
Controls the typical thickness of objects the reflection rays may pass behind.
Declaration
public ClampedFloatParameter screenFadeDistance
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.ClampedFloatParameter |
usedAlgorithm
Screen Space Reflections Algorithm used.
Declaration
public SSRAlgoParameter usedAlgorithm
Field Value
Type | Description |
---|---|
SSRAlgoParameter |
Properties
clampValue
Clamps the exposed intensity.
Declaration
public float clampValue { get; set; }
Property Value
Type | Description |
---|---|
Single |
denoise
Enable denoising on the ray traced reflections.
Declaration
public bool denoise { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
denoiserRadius
Controls the radius of reflection denoiser.
Declaration
public int denoiserRadius { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
fullResolution
Defines if the effect should be evaluated at full resolution.
Declaration
public bool fullResolution { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
minSmoothness
Controls the smoothness value at which HDRP activates SSR and the smoothness-controlled fade out stops.
Declaration
public float minSmoothness { get; set; }
Property Value
Type | Description |
---|---|
Single |
rayLength
Controls the length of reflection rays.
Declaration
public float rayLength { get; set; }
Property Value
Type | Description |
---|---|
Single |
rayMaxIterations
Sets the maximum number of steps HDRP uses for raytracing. Affects both correctness and performance.
Declaration
public int rayMaxIterations { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
smoothnessFadeStart
Controls the smoothness value at which the smoothness-controlled fade out starts. The fade is in the range [Min Smoothness, Smoothness Fade Start]
Declaration
public float smoothnessFadeStart { get; set; }
Property Value
Type | Description |
---|---|
Single |
upscaleRadius
Controls the size of the upscale radius.
Declaration
public int upscaleRadius { get; set; }
Property Value
Type | Description |
---|---|
Int32 |