Table of Contents

Class SceneRenderingSettings

Namespace
VoxelPlayground.Mod
Assembly
ModData.dll
[CreateAssetMenu(fileName = "SceneRenderingSettings", menuName = "VoxelPlayground/SceneRenderingSettings")]
public class SceneRenderingSettings : ScriptableObject
Inheritance
object
SceneRenderingSettings
Extension Methods

Fields

ambientEquatorColor

[HideIf("@this.ambientMode!=AmbientMode.Trilight", true)]
public Color ambientEquatorColor

Field Value

Color

ambientGroundColor

[HideIf("@this.ambientMode!=AmbientMode.Trilight", true)]
public Color ambientGroundColor

Field Value

Color

ambientIntensity

[HideIf("@this.ambientMode!=AmbientMode.Skybox", true)]
public float ambientIntensity

Field Value

float

ambientLight

[HideIf("@this.ambientMode!=AmbientMode.Flat", true)]
public Color ambientLight

Field Value

Color

ambientMode

public AmbientMode ambientMode

Field Value

AmbientMode

ambientSkyColor

[HideIf("@this.ambientMode!=AmbientMode.Trilight", true)]
public Color ambientSkyColor

Field Value

Color

bloom

[Header("Bloom")]
public bool bloom

Field Value

bool

bloomIntensity

public float bloomIntensity

Field Value

float

bloomScatter

public float bloomScatter

Field Value

float

bloomThreshold

public float bloomThreshold

Field Value

float

cloudColor1Gradient

[Tooltip("Cloud color throughout the day")]
[ShowIf("@this.useTimeOfDay", true)]
public Gradient cloudColor1Gradient

Field Value

Gradient

cloudColor2Gradient

[Tooltip("Cloud color throughout the day")]
[ShowIf("@this.useTimeOfDay", true)]
public Gradient cloudColor2Gradient

Field Value

Gradient

colorAdjustments

[Header("Color Adjustments")]
public bool colorAdjustments

Field Value

bool

colorAdjustmentsContrast

public float colorAdjustmentsContrast

Field Value

float

fog

[Header("Fog")]
public bool fog

Field Value

bool

fogColor

public Color fogColor

Field Value

Color

fogColorGradient

[Tooltip("Fog color changes throughout the day")]
[ShowIf("@this.useTimeOfDay", true)]
public Gradient fogColorGradient

Field Value

Gradient

fogEnd

public float fogEnd

Field Value

float

fogMode

public FogMode fogMode

Field Value

FogMode

fogStart

public float fogStart

Field Value

float

internalSunriseTime

public const float internalSunriseTime = 6

Field Value

float

internalSunsetTime

public const float internalSunsetTime = 18

Field Value

float

lpvLighting

[Header("Lighting")]
public bool lpvLighting

Field Value

bool

lut

[Header("LUT")]
public bool lut

Field Value

bool

lutIntensity

public float lutIntensity

Field Value

float

lutTexture

public Texture lutTexture

Field Value

Texture

skyBottomColorGradient

[Tooltip("Sky gradient bottom color for Stylized Sky shader")]
[ShowIf("@this.useTimeOfDay", true)]
public Gradient skyBottomColorGradient

Field Value

Gradient

skybox

[Header("Skybox")]
public bool skybox

Field Value

bool

skyboxMaterial

public Material skyboxMaterial

Field Value

Material

skyTopColorGradient

[Tooltip("Sky gradient top color for Stylized Sky shader")]
[ShowIf("@this.useTimeOfDay", true)]
public Gradient skyTopColorGradient

Field Value

Gradient

sunColorGradient

[Tooltip("Directional light color throughout the day")]
[ShowIf("@this.useTimeOfDay", true)]
public Gradient sunColorGradient

Field Value

Gradient

sunDiscColorGradient

[Tooltip("Sun disc color for Stylized Sky shader")]
[ShowIf("@this.useTimeOfDay", true)]
public Gradient sunDiscColorGradient

Field Value

Gradient

sunHaloColorGradient

[Tooltip("Sun halo color for Stylized Sky shader")]
[ShowIf("@this.useTimeOfDay", true)]
public Gradient sunHaloColorGradient

Field Value

Gradient

sunHaloContributionCurve

[Tooltip("Sun halo contribution curve throughout the day (0-24 hours)")]
[ShowIf("@this.useTimeOfDay", true)]
public AnimationCurve sunHaloContributionCurve

Field Value

AnimationCurve

sunHaloExponentCurve

[Tooltip("Sun halo exponent curve throughout the day (0-24 hours)")]
[ShowIf("@this.useTimeOfDay", true)]
public AnimationCurve sunHaloExponentCurve

Field Value

AnimationCurve

sunIntensityCurve

[Tooltip("Sun intensity curve throughout the day (0-24 hours)")]
[ShowIf("@this.useTimeOfDay", true)]
public AnimationCurve sunIntensityCurve

Field Value

AnimationCurve

tonemapping

[Header("Tonemapping")]
public bool tonemapping

Field Value

bool

tonemappingMode

public TonemappingMode tonemappingMode

Field Value

TonemappingMode

transitionDuration

[Range(0, 1)]
[Tooltip("Transition duration in hours for sunrise/sunset")]
[ShowIf("@this.useTimeOfDay", true)]
public float transitionDuration

Field Value

float

useTimeOfDay

[Header("Time of Day")]
public bool useTimeOfDay

Field Value

bool

Methods

ApplyTimeOfDaySettings(float)

[Button("Apply Time of Day Settings")]
public void ApplyTimeOfDaySettings(float timeOfDay)

Parameters

timeOfDay float

Default()

public static SceneRenderingSettings Default()

Returns

SceneRenderingSettings

GetSunColorAtTime(float)

public Color GetSunColorAtTime(float timeOfDay)

Parameters

timeOfDay float

Returns

Color

GetSunIntensityAtTime(float)

public float GetSunIntensityAtTime(float timeOfDay)

Parameters

timeOfDay float

Returns

float