Class RayTracingSettings
A volume component that holds the general settings for ray traced effects.
Implements
Inherited Members
Namespace: UnityEngine.Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
[Serializable]
[VolumeComponentMenu("Ray Tracing/Ray Tracing Settings")]
[SupportedOnRenderPipeline(typeof(HDRenderPipelineAsset))]
public sealed class RayTracingSettings : VolumeComponent, IApplyRevertPropertyContextMenuItemProvider
Constructors
RayTracingSettings()
Default constructor for the ray tracing settings volume component.
Declaration
public RayTracingSettings()
Fields
buildMode
Controls how the ray tracing acceleration structure is build.
Declaration
[Tooltip("Controls how the ray tracing acceleration structure is build.")]
public RTASBuildModeParameter buildMode
Field Value
Type | Description |
---|---|
RTASBuildModeParameter |
cullingDistance
Specifies the radius of the sphere used to cull objects out of the ray tracing acceleration structure when the culling mode is set to Sphere.
Declaration
[Tooltip("Specifies the radius of the sphere used to cull objects out of the ray tracing acceleration structure when the culling mode is set to Sphere.")]
public MinFloatParameter cullingDistance
Field Value
Type | Description |
---|---|
MinFloatParameter |
cullingMode
Controls how the maximum distance for the ray tracing culling is defined.
Declaration
[Tooltip("Controls how the maximum distance for the ray tracing culling is defined.")]
public RTASCullingModeParameter cullingMode
Field Value
Type | Description |
---|---|
RTASCullingModeParameter |
directionalShadowFallbackIntensity
Controls the fallback directional shadow value that is used when the point to shade is outside of the cascade.
Declaration
[Tooltip("Controls the fallback directional shadow value that is used when the point to shade is outside of the cascade.")]
public ClampedFloatParameter directionalShadowFallbackIntensity
Field Value
Type | Description |
---|---|
ClampedFloatParameter |
directionalShadowRayLength
Controls the maximal ray length for ray traced shadows.
Declaration
[Tooltip("Controls the maximal ray length for ray traced directional shadows.")]
public MinFloatParameter directionalShadowRayLength
Field Value
Type | Description |
---|---|
MinFloatParameter |
distantRayBias
Controls the Ray Bias value used when the distance between the pixel and the camera is close to the far plane. Between the near and far plane the Ray Bias and Distant Ray Bias are interpolated linearly. This does not affect Path Tracing or Recursive Rendering. This value can be increased to mitigate Ray Tracing z-fighting issues at a distance.
Declaration
[Tooltip("Controls the Ray Bias value used when the distance between the pixel and the camera is close to the far plane. Between the near and far plane the Ray Bias and Distant Ray Bias are interpolated linearly. This does not affect Path Tracing or Recursive Rendering. This value can be increased to mitigate Ray Tracing z-fighting issues at a distance.")]
public ClampedFloatParameter distantRayBias
Field Value
Type | Description |
---|---|
ClampedFloatParameter |
extendCameraCulling
Enables the override of the camera culling. This increases the validity area of animated skinned mesh that are outside of the frustum..
Declaration
[Tooltip("Enables the override of the camera culling. This increases the validity area of animated skinned mesh that are outside of the frustum.")]
public BoolParameter extendCameraCulling
Field Value
Type | Description |
---|---|
BoolParameter |
extendShadowCulling
When enabled, the culling region for punctual and area lights shadow maps is increased from frustum culling to extended culling. For Directional lights, cascades are not extended, but additional objects may appear in the cascades.
Declaration
[Tooltip("When enabled, the culling region for punctual and area lights shadow maps is increased from frustum culling to extended culling. For Directional lights, cascades are not extended, but additional objects may appear in the cascades.")]
[FormerlySerializedAs("extendCulling")]
public BoolParameter extendShadowCulling
Field Value
Type | Description |
---|---|
BoolParameter |
rayBias
Controls the bias for all real-time ray tracing effects.
Declaration
[Tooltip("Controls the bias for all real-time ray tracing effects.")]
public ClampedFloatParameter rayBias
Field Value
Type | Description |
---|---|
ClampedFloatParameter |