Subsurface Scattering
This section contains settings related to the Screen-Space Subsurface Scattering effect. This effect should be used to imitate human skin, wax, etc.
Do not forget to enable the SSSSS effect for a material.
Common Parameters#
Screen-Space Subsurface Scattering | The Console access: sss_enabled (API control) |
||
---|---|---|---|
Preset | The SSSSS (Screen-Space Subsurface Scattering) preset used at the moment. To customize the SSSSS effect options at run time you should activate the Custom preset: One of the following values:
Console access: render_sssss_preset (API control) Presets override user-defined custom settings. When any preset other than Custom is active, modification of the parameters via API has no effect. The parameter value set via the last API call shall be used only when the Custom preset is active. When checking the current parameter value via API you'll get the corresponding setting stored in the active preset (default or custom one). |
||
Radius | The
subsurface scattering radius — distance in the screen space, within which colors will be sampled.It controls how much wrinkles, pores and cavities will be blurred and highlighted. The higher the value, the farther subsurface scattering reaches. Too high values result in the ghosting effect. By the minimum value of
0, no subsurface scattering is rendered. Range of values: [0.0f, inf]. The default value is : 1.0f. Console access: render_sssss_radius (API control)
|
||
SSSSS Color | The
subsurface scattering color used to simulate the subsurface component of skin lighting, i.e. the light that bounces inside of the subsurface tissue layers (epidermis and dermis) before exiting.For skin, subsurface color is reddish, due to blood circulating in skin tissues. To use this option, SSSSS effect
(see the ) should be enabled.
vec4(1.0f, 0.0f, 0.0f, 1.0f) - default value Console access: render_sssss_color (API control) |
||
Threshold Min | The threshold of SSSSS (Screen-Space Subsurface Scattering) for the material's Translucent parameter equal to 0 (minimum translucency). To use this option, the SSSSS effect (see the ) should be enabled. Range of values: [0.0f, inf]. The default value is : 4.0f. Console access: render_sssss_min_threshold (API control) |
||
Threshold Max | The threshold of SSSSS (Screen-Space Subsurface Scattering) for the material's Translucent parameter equal to 1 (maximum translucency). To use this option, the SSSSS effect (see the ) should be enabled. Range of values: [0.0f, inf]. The default value is : 10.0f. Console access: render_sssss_max_threshold (API control) |
Translucency Options#
Translucent Color | The color used for translucent objects globally. When light shines on one side of the object, the other side is partially illuminated with this color. vec4(1.0f, 1.0f, 1.0f, 1.0f) - default value (white) Console access: render_translucent_color (API control) |
---|
Customizable Settings#
The following settings are available when the Custom preset is selected.
Subsurface Scattering Settings
Diffuse | The value indicating if the SSSSS (Screen-Space Subsurface Scattering) calculation for diffuse lighting (directional lights) is enabled. If this option is not required, disable it to save performance. To use this option, the SSSSS effect (see the ) should be enabled. enabled by default.
Console access: render_sssss_diffuse (API control) |
||
---|---|---|---|
Ambient | The value indicating if the SSSSS (Screen-Space Subsurface Scattering) calculation for ambient lighting (environment) is enabled. If this option is not required, disable it to save performance. To use this option, the SSSSS effect (see the ) should be enabled. disabled by default.
Console access: render_sssss_ambient (API control) |
||
Quality | The quality of the SSSSS (Screen-Space Subsurface Scattering) effect. One of the following values:
Console access: render_sssss_quality (API control)
|
||
Resolution | The resolution of the SSSSS (Screen-Space Subsurface Scattering) effect. One of the following values:
Console access: render_sssss_resolution (API control) |
||
Noise Ray | The intensity of the ray noise used for SSSSS (Screen-Space Subsurface Scattering) calculation to reduce banding artifacts of tracing. Higher values make banding less visible. To use this option, the SSSSS effect (see the ) should be enabled. Range of values: [0.0f, 1.0f]. The default value is : 0.5f. Console access: render_sssss_noise_ray (API control) |
||
Noise Step | The intensity of the step noise used for SSSSS (Screen-Space Subsurface Scattering) calculation to reduce banding artifacts of tracing. Higher values make banding less visible. To use this option, the SSSSS effect (see the ) should be enabled. Range of values: [0.0f, 1.0f]. The default value is : 0.5f. Console access: render_sssss_noise_step (API control) |
Interleaved Rendering Options#
Enabled | The value indicating if the interleaved rendering mode for SSSSS (Screen-Space Subsurface Scattering) is enabled. This option enables rendering of the effect in only half or quarter of all pixels with subsequent reconstruction of neighboring pixels using the data from previous frames, significantly improving performance. The effect is cumulative and works best with Temporal Filter, which reduces ghosting and noise artifacts. disabled by default.Console access: render_sssss_interleaved (API control) |
---|---|
Samples | The number of pixels to be skipped when rendering the SSSSS (Screen-Space Subsurface Scattering) effect with subsequent reconstruction of neighboring pixels using the data from previous frames. The following options are available:
Console access: render_sssss_interleaved_samples (API control) |
Color Clamping | The color clamping mode used to reduce ghosting effect. Higher values increase clamping intensity, but may cause flickering (to reduce flickering you can choose High + Velocity). When disabled, translucency has a lag as it is several frames behind. One of the following values:
Console access: render_sssss_interleaved_color_clamping (API control) |
Temporal Filtering Options#
Fix Flicker | The value indicating if the taa fix flicker option is enabled. This option fixes flickering edges caused by TAA: it removes bright pixels by using the pixel brightness information from the previous frame. It is recommended to enable the option for bright thin ropes, wires and lines. The option is available only when TAA (see the ) is enabled. Enabling this option may increase performance costs. Console access: render_taa_fix_flicker (API control) |
---|---|
Frames By Color | The value of TAA parameter for Screen-Space Subsurface Scattering that is similar to TAA Frames By Color (see the ). enabled by default.
Console access: render_sssss_taa_frames_by_color (API control) |
Fix Blur | The value of TAA parameter for Screen-Space Subsurface Scattering that is similar to TAA Catmull Resampling (see the ). enabled by default.
Console access: render_sssss_taa_catmull_resampling (API control) |
Antialiasing In Motion | The value of TAA parameter for Screen-Space Subsurface Scattering that is similar to TAA Antialiasing In Motion (see the ). disabled by default.
Console access: render_sssss_taa_antialiasing_in_motion (API control) |
Preserve Details | The value of TAA parameter for Screen-Space Subsurface Scattering that is similar to TAA Preserve Details (see the ). Range of values: [0.0f, inf]. The default value is : 0.5f. Console access: render_sssss_taa_preserve_details (API control) |
Frame Count | The value of TAA parameter for Screen-Space Subsurface Scattering that is similar to TAA Frame Count (see the ). Range of values: [0.0f, inf]. The default value is : 30.0f. Console access: render_sssss_taa_frame_count (API control) |
Frames By Velocity
Enabled | The value of TAA parameter for Screen-Space Subsurface Scattering that is similar to TAA Frames By Velocity (see the ). enabled by default.
Console access: render_sssss_taa_frames_by_velocity (API control) |
---|---|
Threshold | The value of TAA parameter for Screen-Space Subsurface Scattering that is similar to TAA Frames Velocity Threshold (see the ). Range of values: [0.0f, inf]. The default value is : 1.0f. Console access: render_sssss_taa_frames_velocity_threshold (API control) |
Max Frame Count | The value of TAA parameter for Screen-Space Subsurface Scattering that is similar to TAA Max Frames By Velocity (see the ). Range of values: [0.0f, inf]. The default value is : 60.0f. Console access: render_sssss_taa_max_frames_by_velocity (API control) |
Min Frame Count | The value of TAA parameter for Screen-Space Subsurface Scattering that is similar to TAA Min Frames By Velocity (see the ). Range of values: [0.0f, inf]. The default value is : 4.0f. Console access: render_sssss_taa_min_frames_by_velocity (API control) |
Last update:
2024-04-19
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)