Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ void GetPresetCloudMapValues(VolumetricClouds.CloudPresets preset, out CloudMode
cloudModelData.shapeFactor = 0.9f;
cloudModelData.shapeScale = 3.0f;
cloudModelData.erosionFactor = 0.9f;
cloudModelData.erosionScale = 75.0f;
cloudModelData.erosionScale = 61.4f;
cloudModelData.erosionNoise = VolumetricClouds.CloudErosionNoise.Perlin32;
return;
}
Expand All @@ -186,18 +186,18 @@ void GetPresetCloudMapValues(VolumetricClouds.CloudPresets preset, out CloudMode
cloudModelData.densityMultiplier = 0.3f;
cloudModelData.shapeFactor = 0.9f;
cloudModelData.shapeScale = 5.0f;
cloudModelData.erosionFactor = 0.9f;
cloudModelData.erosionScale = 120.0f;
cloudModelData.erosionFactor = 0.95f;
cloudModelData.erosionScale = 87.7f;
cloudModelData.erosionNoise = VolumetricClouds.CloudErosionNoise.Perlin32;
return;
}
case VolumetricClouds.CloudPresets.Overcast:
{
cloudModelData.densityMultiplier = 0.25f;
cloudModelData.shapeFactor = 0.55f;
cloudModelData.shapeScale = 8.0f;
cloudModelData.erosionFactor = 0.6f;
cloudModelData.erosionScale = 80.0f;
cloudModelData.densityMultiplier = 0.3f;
cloudModelData.shapeFactor = 0.6f;
cloudModelData.shapeScale = 6.0f;
cloudModelData.erosionFactor = 0.75f;
cloudModelData.erosionScale = 87.2f;
cloudModelData.erosionNoise = VolumetricClouds.CloudErosionNoise.Perlin32;
return;
}
Expand All @@ -206,8 +206,8 @@ void GetPresetCloudMapValues(VolumetricClouds.CloudPresets preset, out CloudMode
cloudModelData.densityMultiplier = 0.3f;
cloudModelData.shapeFactor = 0.85f;
cloudModelData.shapeScale = 3.0f;
cloudModelData.erosionFactor = 0.95f;
cloudModelData.erosionScale = 60.0f;
cloudModelData.erosionFactor = 0.9f;
cloudModelData.erosionScale = 57.9f;
cloudModelData.erosionNoise = VolumetricClouds.CloudErosionNoise.Perlin32;
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ public CloudFadeInModeParameter(CloudFadeInMode value, bool overrideState = fals
public BoolParameter enable = new BoolParameter(false);

/// <summary>
/// When enabled, clouds are part of the scene and you can interact with them. This means for example, you can move around the clouds, clouds can appear between the Camera and other GameObjects, and the Camera's clipping planes affects the clouds. When disabled, the clouds are part of the skybox. This mean the clouds and their shadows appear relative to the Camera and always appear behind geometry.
/// When enabled, clouds are part of the scene and you can interact with them. This means you can move around and inside the clouds, they can appear between the Camera and other GameObjects, and the Camera's clipping planes affect the clouds. When disabled, the clouds are part of the skybox. This means the clouds and their shadows appear relative to the Camera and always appear behind geometry.
/// </summary>
[Tooltip("When enabled, clouds are part of the scene and you can interact with them. This means for example, you can move around the clouds, clouds can appear between the Camera and other GameObjects, and the Camera's clipping planes affects the clouds. When disabled, the clouds are part of the skybox. This mean the clouds and their shadows appear relative to the Camera and always appear behind geometry.")]
[Tooltip("When enabled, clouds are part of the scene and you can interact with them. This means you can move around and inside the clouds, they can appear between the Camera and other GameObjects, and the Camera's clipping planes affect the clouds. When disabled, the clouds are part of the skybox. This means the clouds and their shadows appear relative to the Camera and always appear behind geometry.")]
public BoolParameter localClouds = new BoolParameter(false);

/// <summary>
Expand All @@ -214,7 +214,7 @@ public CloudFadeInModeParameter(CloudFadeInMode value, bool overrideState = fals
/// Controls the altitude of the bottom of the volumetric clouds volume in meters.
/// </summary>
[Tooltip("Controls the altitude of the bottom of the volumetric clouds volume in meters.")]
public MinFloatParameter lowestCloudAltitude = new MinFloatParameter(1000, 0.01f);
public MinFloatParameter lowestCloudAltitude = new MinFloatParameter(1000.0f, 0.01f);

/// <summary>
/// Controls the thickness of the volumetric clouds volume in meters.
Expand All @@ -241,16 +241,16 @@ public CloudFadeInModeParameter(CloudFadeInMode value, bool overrideState = fals
public MinFloatParameter fadeInDistance = new MinFloatParameter(0.0f, 0.0f);

/// <summary>
/// Controls the number of steps when evaluating the clouds' transmittance.
/// Controls the number of steps when evaluating the clouds' transmittance. A higher value may lead to a lower noise level and longer view distance, but at a higher cost.
/// </summary>
[Tooltip("Controls the number of steps when evaluating the clouds' transmittance.")]
public ClampedIntParameter numPrimarySteps = new ClampedIntParameter(48, 16, 512);
[Tooltip("Controls the number of steps when evaluating the clouds' transmittance. A higher value may lead to a lower noise level and longer view distance, but at a higher cost.")]
public ClampedIntParameter numPrimarySteps = new ClampedIntParameter(64, 32, 1024);

/// <summary>
/// Controls the number of steps when evaluating the clouds' lighting.
/// Controls the number of steps when evaluating the clouds' lighting. A higher value will lead to smoother lighting and improved self-shadowing, but at a higher cost.
/// </summary>
[Tooltip("Controls the number of steps when evaluating the clouds' lighting.")]
public ClampedIntParameter numLightSteps = new ClampedIntParameter(8, 6, 32);
[Tooltip("Controls the number of steps when evaluating the clouds' lighting. A higher value will lead to smoother lighting and improved self-shadowing, but at a higher cost.")]
public ClampedIntParameter numLightSteps = new ClampedIntParameter(6, 1, 32);

/// <summary>
/// Specifies the cloud map - Coverage (R), Rain (G), Type (B).
Expand Down Expand Up @@ -349,11 +349,11 @@ public CloudFadeInModeParameter(CloudFadeInMode value, bool overrideState = fals
public ColorParameter scatteringTint = new ColorParameter(new Color(0.0f, 0.0f, 0.0f, 1.0f));

/// <summary>
/// Controls the amount of local scattering in the clouds. A value of 1 may provide a more powdery aspect.
/// Controls the amount of local scattering in the clouds. A higher value may produce a more powdery or diffused aspect.
/// </summary>
[Tooltip("Controls the amount of local scattering in the clouds. A value of 1 may provide a more powdery aspect.")]
[Tooltip("Controls the amount of local scattering in the clouds. A higher value may produce a more powdery or diffused aspect.")]
[AdditionalProperty]
public ClampedFloatParameter powderEffectIntensity = new ClampedFloatParameter(0.7f, 0.0f, 1.0f);
public ClampedFloatParameter powderEffectIntensity = new ClampedFloatParameter(0.25f, 0.0f, 1.0f);

/// <summary>
/// Controls the amount of multi-scattering inside the cloud.
Expand Down Expand Up @@ -497,7 +497,7 @@ public CloudFadeInModeParameter(CloudFadeInMode value, bool overrideState = fals
public BoolParameter shadows = new BoolParameter(false);

/// <summary>
/// Enable/Disable the volumetric clouds shadow. This will override the cookie of your directional light and the cloud layer shadow (if active).
/// Specifies the resolution of the volumetric clouds shadow map.
/// </summary>
[Tooltip("Specifies the resolution of the volumetric clouds shadow map.")]
public CloudShadowResolutionParameter shadowResolution = new CloudShadowResolutionParameter(CloudShadowResolution.Medium256);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.