--- title: "Sun" url: "https://help.maxon.net/c4d/en-us/Content/html/OSKYSHADER-ID_SKY_GROUP_PHYSICAL_SUN.html" section_path: "Create Menu > Physical Sky > Sun" element_id: "OSKYSHADER" group_id: "ID_SKY_GROUP_PHYSICAL_SUN" description: "The sun is an Infinite light source whose shadow type an be defined (Hard, Area, None). The following parameters can be used to define the characteristics …" --- ## Sun The sun is an **Infinite** light source whose shadow type an be defined (Hard, Area, None). The following parameters can be used to define the characteristics of the sun light source. These have no influence on the look of the sky. You can also define your own light source as the sun light source. > **Tip:** Tip:Since both light sources are linked, disabling the sun light source completely (Sky Manager: left column, **Basic** Attribute Manager tab) will also disable the moonlight source. This will not, however, affect the display of the constellations in the sky. ### Preview Color Parameter ID: `SKY_REAL_SKY_SUN_COLOR` Adjusting the following parameters (incl. Position, Turbidity, etc.) will modify the Sun color accordingly. A preview of this color is displayed here. ### Intensity Parameter ID: `SKY_REAL_SKY_SUN_INTENSITY` · Range: [0..10000%] Defines the intensity of the sun. If, for example, your scene is over exposed due to strong surface reflections, adjusting this value can help. ### Saturation Correction Parameter ID: `SKY_REAL_SKY_SUN_SATURATION` · Range: [0..200%] Defines the sun's color saturation. If you want white sunlight, enter a value of 0% here. ### Hue Correction Parameter ID: `SKY_REAL_SKY_SUN_HUE` · Range: [0..100%] Depending on the value used, any color in the spectrum can be generated. Great for creating that extraterrestrial look. ### Gamma Correction Parameter ID: `SKY_REAL_SKY_SUN_GAMMA` · Range: [0.10..10.00] Defines the sun's gamma value. This value can be used to prevent over exposing a scene even if the **Intensity** value is too high. Animating the **Gamma Correction** parameter for day to night animations can help reduce the brightness of the noon sun. ### Size Ratio Parameter ID: `SKY_REAL_SKY_SUN_SIZE_RATIO` · Range: [0..10000%] Defines the size of the visible sun. Note that this also has an effect on the Area shadows. If you want a hard sun shadow, enter a value of 0% here. ### As Seen Intensity Parameter ID: `SKY_REAL_SKY_SUN_SEEN_INTENSITY` · Range: [0..10000%] Defines the visibility of the sun. Does not otherwise affect emitted light, etc. This parameter is dependent on the **Intensity** parameter. If **Intensity** is set to 0%, setting the **As Seen Intensity** to, for example, 1000% will not make the sun visible. ### Custom Color Parameter ID: `SKY_GENERAL_CHANGE_SUN_COL` ### Color Parameter ID: `SKY_GENERAL_SUN_COLOR` Enable this option if you want to create a custom color using the underlying color field. The sun color will have no effect on 2D Clouds. ### Lensflares Parameter ID: `SKY_GENERAL_LENSFLARES` Enables or disables all lens effects. ### Glow Intensity Parameter ID: `SKY_GENERAL_MAX_FLARE_GLOW` · Range: [0..100%] ![Image: 004215.jpg](https://help.maxon.net/c4d/en-us/Content/Resources/Images/004215.jpg)\ Lens glow and lens reflection. Defines the intensity of the lens glow. Set this value to 0% if you do not want any glow to be seen. ### Flare Intensity Parameter ID: `SKY_GENERAL_MAX_FLARE_REFL` · Range: [0..100%] Set this parameter's value to 0% to disable the flare altogether. Otherwise you can enter a different value to define its intensity. ### Distance Scale Parameter ID: `SKY_GENERAL_SUN_DIST_SCALE` · Range: [0..+∞%] If you encounter problems with the light sources integrated into the sun or moon (e.g., if they are not being displayed in the editor or if lens flare or lens glow are displayed incorrectly), simply reduce their distance using this setting.. ### Custom Sun Object Parameter ID: `SKY_OBJECT_SUN_OBJECT` Simply drag a light source from the **Object Manager** into the **Sun** or **Moon** field. > **Tip:** The time of day will still determine the light source's Location, color and brightness. You can define a constant color using the **Color** setting (under **Custom Sun Color**) in the **General** tab. If you want to customize a light source completely, and only have its position affected by Sky, create a second light source, make it a child of the first, and make the first light source invisible. ![Image: 004260.jpg](https://help.maxon.net/c4d/en-us/Content/Resources/Images/004260.jpg) This second light will then not be **lit** by Sky. As a child object of **Light 1** it will follow its position. > **Tip:** Normal objects can be used here as well. They can be made to follow the position of the moon or sun. The internal sun or moon light source will be used to light the object. ![Image: subgroup.gif](https://help.maxon.net/c4d/en-us/Content/Resources/Images/subgroup.gif)\ Shadow ### Shadow Parameter ID: `SKY_REAL_SKY_SUN_SHADOW_TYPE` Define if and which type of shadow the sun should cast. You can select from Hard, Area or None. ### Color Parameter ID: `SKY_REAL_SKY_SUN_SHADOW_COLOR` Defines the color of the shadow cast by the sun. ### Transparency Parameter ID: `SKY_REAL_SKY_SUN_SHADOW_TRANSPARENCY` Here you can define if the shadow of transparent objects should also be calculated (see also [Transparency](https://help.maxon.net/c4d/en-us/Content/html/OLIGHT-LIGHT_GROUP_SHADOW.html.md)). ### Accuracy Parameter ID: `SKY_REAL_SKY_SUN_SAMPLING_QUALITY` · Range: [0..100%] ### Minimum Samples Parameter ID: `SKY_REAL_SKY_SUN_SAMPLING_SAMPLES_MIN` · Range: [1..16384] ### Maximum Samples Parameter ID: `SKY_REAL_SKY_SUN_SAMPLING_SAMPLES_MAX` · Range: [4..16384] ![Image: 020247.jpg](https://help.maxon.net/c4d/en-us/Content/Resources/Images/020247.jpg)\ Increasing **Maximum Samples** value from left to right. Note how the shadows become increasingly smooth and homogenous. These three parameters function just like the [Light parameters (with Area shadow)](https://help.maxon.net/c4d/en-us/Content/html/OLIGHT-LIGHT_GROUP_SHADOW.html.md) of the same name and pertain exclusively to sun Area shadows. An internal algorithm is used to calculate shadow samples, within the defined **Minimum Samples** and **Maximum Samples** range, based on the **Accuracy** and how the scene is made up. Higher values will result in better quality and correspondingly longer render times. Values that are too low will result in grainy shadows. Please refer to the link above for more details. Don't forget that the **Size Ratio** value is used to define the size of the sun. Otherwise no Area shadows will result. ### Density Parameter ID: `SKY_REAL_SKY_SUN_SHADOW_DENSITY` · Range: [0..10000%] Here you can define the shadow's intensity. A value of 100% will give the shadow full intensity; a value of 50% will make the shadow semi-transparent; and a value of 0% will make the shadow completely transparent (not visible). Values in excess of 100% can also be entered.