Introduction
The Redshift Physical Sun directional light is a physically accurate representation of sunlight based on the PRG Clear Sky model from the paper "A Fitted Radiance and Attenuation Model for Realistic Atmospheres" which improves upon the Hosek-Wilkie sky model. The Physical Sun is generally used in combination with the Physical Sky environment shader but it can also be used by itself.
For more information about the Redshift Physical Sun & Sky system, please refer to the Physical Sky topic.
The Physical Sun emits light at an extremely high intensity (to accurately model the intensity of sunlight that hits the Earth's surface) and should therefore always be used with a form of tone mapping like the default ACES 1.0 SDR view transform or legacy Photographic Exposure lens shader in order to achieve visually appealing results. Without tone-mapping, the scene will likely render completely white or far too bright.
Parameters
Intensity
On
Turns the sun light on or off.
Model
This option lets you pick between the different sky models. PRG Clear Sky is the most modern and produces more realistic and appealing light color, especially at sunrise and sunset.
- PRG Clear Sky (newest)
- Legacy
Intensity Multiplier
Specifies an intensity multiplier for the sun light. This parameter can be used to scale the intensity of the sun up or down.
Intensity Multiplier: 0.1 | 1 (default) | 3 |
Non-Physical Intensity
Use this parameter when you don't want to use a physically correct camera lens shader, but still want visually acceptable light intensities. Effectively this reduces the light intensity so that tone-mapping is not required to bring the sky isn't visually appealing ranges.
Use Non-Physical Intensity: Disabled (default) |
Enabled |
Model
Controls the lighting model that is used for the direct lighting in the scene. PRG Clear Sky is the most modern and produces more realistic and appealing light color, especially at sunrise and sunset.
- PRG Clear Sky (newest)
- Legacy
This option only changes the color quality of the direct light in the scene, this is distinct from the sky model parameter found on the Physical Sky shader which only controls how the sun and sky look in the background.
Both legacy models, Hosek and Preetham, use the same direct lighting model (Legacy) but each has their own unique sky rendering model. However, PRG Clear Sky uses both an updated direct lighting model and sky rendering model. Separating these two parameters allows you to use the legacy direct lighting model with the PRG sky model or the PRG direct lighting model with either of two legacy sky models.
S
Color
Red-Blue Shift
Specifies a hue shift for the color of the sun light. The default value of 0 will yield physically accurate sun light color. Negative values will shift the sun light color towards blue, while positive values will shift it towards red.
Red-Blue Shift: -1 | -0.2 | 0 (default) | 0.2 | 5 |
Saturation
Specifies the color saturation of the sun light. The default value of 1 will yield physically accurate sun light color. Smaller values will reduce the color saturation of the sun light, with a value of 0 producing pure white light. Values above 1 will exaggerate the color of the sun light.
Saturation: 0 | 0.5 | 1 (default) |
Sun Tint
Adds a color tint to the sun light, the default color of white results in no color tint. Please note that the brightness of the color tint will affect the brightness of the sun, when black is used for the sun tint it will block all light.
Sun Tint: White (default) | Pink | Dark Red |
Saturation Affects Color Adjustment
When enabled - by default, the saturation parameter affects all sky color adjustments like Red-Blue Shift and Sun Tint. When disabled, the saturation parameter only affects the saturation values of the sky shader before other color adjustments.
In the example images below, notice how when Saturation Affects Color Adjustment is disabled the pink sun tint still affects the scene even when saturation is set to 0.
Saturation Affects Color Adjustment: Enabled (default) Saturation: 0 Sun Tint: Pink |
Disabled 0 |
Disabled 1 |
Turbidity
Specifies the haziness of the air – a measure of dust particle pollution. A value of 2.0 represents a very clear, blue sky, while larger values will make the sky an orange color.
Turbidity: 2 (default) | 5 | 10 |
Ozone
Only works with the legacy sky model.
Specifies the amount of ozone in the atmosphere, with values ranging from 0.0 to 1.0. The default is 0.35, which is commonly used for the Earth's atmosphere. Smaller values will increase the amount of orange in the sunlight, while larger values will make it more blue.
Horizon Height
Specifies the position of the horizon. Values below 0 will push the horizon down, while values above 0 will raise the horizon.
Horizon Height: -1 | 0 (default) | 2 | 3 |
Shadow
Enable
Enable or disable shadow casting.
Transparency
Specifies the transparency of the shadows cast by the light. Smaller values yield darker shadows. The default value of 0 will produce a completely black shadow. A value of 1 will produce no shadow at all.
The example below shows how a completely opaque sphere's shadow transparency can be controlled by this light setting.
|
Transparency 0 to 1 |
Softness
Specifies edge softness for non-area light shadows. A value of 0 means no softness and will yield sharp shadows. Values above 0 will produce softer shadow edges.
Softness is not available for Physical lights when set to Area. The softness of an Area light is controlled by the light's size itself.
|
Softness 0 to higher values |
Softness Affects Gobo
Enables soft gobo texture projection, to match the softness of the shadows, giving the same appearance as if the light was an area light.
Softness Affects Gobo is only available for non-Area Physical lights and IES lights.
Light Group
AOV Light Group
This is the name of the AOV light group this light is associated with.
For more information on Light Groups and how to set them up and use them please see here.
Contribution
Matte Shadow Illuminator
Specifies whether the light can illuminate 'Matte Shadow' surfaces (see Matte Shadow Catcher shader).
Matte Shadow Illuminator is only available for Redshift Physical and Redshift IES lights.
Affected by Refraction
This option allows you to control how specular reflections are affected by rough/refractive objects that block the light and whether or not the light rays bend as they pass through. Prior to 2.6.10 this option was not available and the light rays would never bend. Specular ray bending is an important effect for rendering realistic-looking glass and lenses.
- Never - Specular rays do not bend. This is the legacy lighting behavior.
- Auto - Specular rays bend through refractions if they are not too rough and bias towards not bending if they are rough.
- Always - Specular rays bend through refractions regardless of ray roughness.
This effect is available only for area lights and dome lights. Spot and IES lights can not be seen through bent rays because their source is infinitesimally small.
Care must be taken when using 'Always', as this can disable Multiple Importance Sampling, which is a crucial technique for getting clean renders for rough surfaces.
Light/Shadow linking is not available for specular rays that have been bent.
GI Max Trace Depth
This option lets you override the maximum trace depth for GI rays on a per-light basis.
Contribution Scale Parameters
The contribution parameters covered below control how much a light is able to affect each shading component. The ability to control the intensity of each component individually offers creative flexibility, each can be lowered or completely disabled and even driven higher with values greater than 1. For physically correct results all contribution values should be left at 1 so a light's overall intensity is distributed equally to all shading components.
The example scene in this section features a Cornell Box with a bust from Three D Scans that is separated into pieces with different materials to illustrate the impact a light has on each shading component. Those materials are:
-
Diffuse: A green Standard material with reflections.
-
Reflection: A fully metallic Standard material with diamond plate bump mapping and no diffuse component.
-
Transmission: A fully transmissive Standard material with reflections.
-
Single Scattering: A pink transmissive Standard material with single scattering and reflections.
-
Multiple Scattering: A teal sub surface scattering Standard material with reflections and a very subtle diffuse component.
-
Volume: A blue Standard Volume material with no emission.
-
Global Illumination: The Cornell box demonstrates bounce lighting in shadow regions where no direct lighting is cast.
-
Toon Diffuse, Toon Reflection, Toon Rim: A toon material with a green diffuse component and a sine wave pattern, a white reflection component with a half tone dot pattern, and a light blue rim component.
Contribution Sections |
Diffuse
Scales the intensity of light for diffuse shading. Diffuse shading is generally responsible for the most common base color shading of most materials.
Note that this affects the global illumination intensity as well.
Diffuse: 0 - 2 Other Contribution Types: 1 |
1 0 (Isolated for Reference) |
Reflection
Scales the intensity of light for specular reflections, the direct reflections of a light source.
Note that reflections of other objects are still seen in reflective materials even with a reflection contribution value of 0. In the example below, the metallic material with diamond plating is mostly heavily affected because it has no other shading component besides reflection, however, the specular highlights on the diffuse material, transmissive material, single scattering material, and multiple subsurface scattering material are affected as well.
Reflection: 0 - 2 Other Contribution Types: 1 |
1 0 (Isolated for Reference) |
Transmission
Scales the direct refractive specular intensity of a light seen through a transmissive / refractive material. This could also be thought of as the direct visibility of a light in a transmissive material.
Transmission: 0 - 2 Other Contribution Types: 1 |
1 0 (Isolated for Reference) |
Keep in mind that this only affects the visibility of a light source in a transmissive material, other objects can still be seen in transmissive materials. If a light source is not directly seen through a transmissive material this contribution parameter may have little to no visible effect. To demonstrate this, in the first example below a blue light is placed directly behind the transmissive material so the effect can be seen. However, in the second example, the light source is not seen directly through the transmissive material but the diffuse, global illumination, and other contribution types still illuminate the scene which are seen through the transmissive material. To put it another way, disabling transmission contribution does not stop a material from appearing transmissive the way disabling diffuse contribution results in a black diffuse material.
Transmission: 0 - 2 Directly visible light |
0 - 2 Indirectly visible light |
Single Scattering
Scales the intensity of light for single scattering. Single scattering simulates microscopic particulate suspended in a medium and is part of the Transmission controls of a Standard Material — this is similar to multiple subsurface scattering but is better suited to thinner volumes.
Single Scattering: 0 - 2 Other Contribution Types: 1 |
1 0 (Isolated for Reference) |
Multiple Scattering
Scales the intensity of the light when seen through sub-surface multiple scattered materials.
Multiple Scattering: 0 - 2 Other Contribution Types: 1 |
1 0 (Isolated for Reference) |
Global Illumination
Scales the intensity of a light's global illumination contribution.
Global Illumination requires Diffuse contribution, this is because global illumination simulates the secondary bounces that only occur after the first bounce of light which is what diffuse contribution represents.
Global Illumination: 0 - 2 Diffuse: 1 Other Contribution Types: 1 |
1 1 0 (Isolated for Reference) |
Volume
Scales the intensity of a light's volume contribution, this affects the scattering component of a volume material and environmental fog. A value of 0 disables volume contribution.
In the example below, a blue volume is illuminated by the light and the scene is demoed with and without environment fog.
Volume: 0 - 2 Other Contribution Types: 1 Without Environment Fog |
1 0 (Isolated for Reference) |
0 - 2 1 With Environment Fog |
Toon Diffuse
Scales the intensity of a light's Toon Diffuse contribution. A value of 0 disables the effect.
Toon Diffuse: 0 - 2 1 |
1 0 (Isolated for Reference) |
Toon Reflection
Scales the intensity of a light's Toon Reflection contribution. A value of 0 disables the effect.
Toon Reflection: 0 - 2 Other Contribution Types: 1 |
1 0 (Isolated for Reference) |
Toon Rim
Only available for point, spot, and directional lights.
Scales the intensity of a light's Toon Rim contribution. A value of 0 disables the effect.
Toon Rim: 0 - 2 Other Contribution Types: 1 |
1 0 (Isolated for Reference) |