LightingSettings

Struct LightingSettings 

Source
pub struct LightingSettings {
Show 52 fields pub m_AlbedoBoost: f32, pub m_BounceScale: f32, pub m_EnableBakedLightmaps: bool, pub m_EnableRealtimeLightmaps: bool, pub m_GIWorkflowMode: i32, pub m_Name: String, pub m_RealtimeEnvironmentLighting: bool, pub m_UsingShadowmask: bool, pub m_AO: Option<bool>, pub m_AOMaxDistance: Option<f32>, pub m_BakeBackend: Option<i32>, pub m_BakeResolution: Option<f32>, pub m_CompAOExponent: Option<f32>, pub m_CompAOExponentDirect: Option<f32>, pub m_ExportTrainingData: Option<bool>, pub m_ExtractAO: Option<bool>, pub m_FilterMode: Option<i32>, pub m_FinalGather: Option<bool>, pub m_FinalGatherFiltering: Option<bool>, pub m_FinalGatherRayCount: Option<i32>, pub m_ForceUpdates: Option<bool>, pub m_ForceWhiteAlbedo: Option<bool>, pub m_IndirectOutputScale: Option<f32>, pub m_LightmapMaxSize: Option<i32>, pub m_LightmapParameters: Option<PPtr>, pub m_LightmapsBakeMode: Option<i32>, pub m_MixedBakeMode: Option<i32>, pub m_PVRBounces: Option<i32>, pub m_PVRCulling: Option<bool>, pub m_PVRDenoiserTypeAO: Option<i32>, pub m_PVRDenoiserTypeDirect: Option<i32>, pub m_PVRDenoiserTypeIndirect: Option<i32>, pub m_PVRDirectSampleCount: Option<i32>, pub m_PVREnvironmentMIS: Option<i32>, pub m_PVREnvironmentReferencePointCount: Option<i32>, pub m_PVREnvironmentSampleCount: Option<i32>, pub m_PVRFilterTypeAO: Option<i32>, pub m_PVRFilterTypeDirect: Option<i32>, pub m_PVRFilterTypeIndirect: Option<i32>, pub m_PVRFilteringAtrousPositionSigmaAO: Option<f32>, pub m_PVRFilteringAtrousPositionSigmaDirect: Option<f32>, pub m_PVRFilteringAtrousPositionSigmaIndirect: Option<f32>, pub m_PVRFilteringGaussRadiusAO: Option<i32>, pub m_PVRFilteringGaussRadiusDirect: Option<i32>, pub m_PVRFilteringGaussRadiusIndirect: Option<i32>, pub m_PVRFilteringMode: Option<i32>, pub m_PVRSampleCount: Option<i32>, pub m_PVRSampling: Option<i32>, pub m_Padding: Option<i32>, pub m_RealtimeResolution: Option<f32>, pub m_TextureCompression: Option<bool>, pub m_TrainingDataDestination: Option<String>,
}
Expand description

LightingSettings is a class of the Unity engine since version 2020.1.0b1. Exert from Unity’s scripting documentation: An object containing settings for precomputing lighting data, that Unity can serialize as a Lighting Settings Asset. When the Unity Editor precomputes lighting data for a Scene that uses the Baked Global Illumination system or the Enlighten Realtime Global Illumination system, it uses settings from a LightingSettings object. The same LightingSettings object can be assigned to more than one Scene, which makes it possible to share settings across multiple Scenes.The following example shows how to create a LightingSettings object and assign it to the active Scene using the Lightmapping.lightingSettings API: The following example shows how to create a LightingSettings object, and save it to disk as a Lighting Settings Asset using the AssetDatabase.CreateAsset API. See Also: Lighting Settings Asset.

Fields§

§m_AlbedoBoost: f32

The intensity of surface albedo throughout the Scene when considered in lighting calculations. This value influences the energy of light at each bounce. (Editor only).

§m_BounceScale: f32§m_EnableBakedLightmaps: bool§m_EnableRealtimeLightmaps: bool§m_GIWorkflowMode: i32§m_Name: String

The name of the object.

§m_RealtimeEnvironmentLighting: bool

Determines the lightmap that Unity stores environment lighting in.

§m_UsingShadowmask: bool§m_AO: Option<bool>

Whether to apply ambient occlusion to lightmaps. (Editor only). bool: (2020.1.0a3 - 2020.1.0a12)

§m_AOMaxDistance: Option<f32>

The distance that a ray travels before Unity considers it to be unoccluded when calculating ambient occlusion in lightmaps. (Editor only). f32: (2020.1.0a3 - 2020.1.0a12)

§m_BakeBackend: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_BakeResolution: Option<f32>

f32: (2020.1.0a3 - 2020.1.0a12)

§m_CompAOExponent: Option<f32>

f32: (2020.1.0a3 - 2020.1.0a12)

§m_CompAOExponentDirect: Option<f32>

f32: (2020.1.0a3 - 2020.1.0a12)

§m_ExportTrainingData: Option<bool>

Whether the Progressive Lightmapper exports machine learning training data to the Project folder when it performs the bake. ( Editor only). bool: (2020.1.0a3 - 2020.1.0a12)

§m_ExtractAO: Option<bool>

Whether the Progressive Lightmapper extracts Ambient Occlusion to a separate lightmap. (Editor only). bool: (2020.1.0a3 - 2020.1.0a12)

§m_FilterMode: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_FinalGather: Option<bool>

bool: (2020.1.0a3 - 2020.1.0a12)

§m_FinalGatherFiltering: Option<bool>

bool: (2020.1.0a3 - 2020.1.0a12)

§m_FinalGatherRayCount: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_ForceUpdates: Option<bool>

bool: (2020.1.0a3 - 2020.1.0a12)

§m_ForceWhiteAlbedo: Option<bool>

bool: (2020.1.0a3 - 2020.1.0a12)

§m_IndirectOutputScale: Option<f32>

f32: (2020.1.0b1 - 2022.3.2f1)

§m_LightmapMaxSize: Option<i32>

The maximum size in pixels of an individual lightmap texture. (Editor only). i32: (2020.1.0a3 - 2020.1.0a12)

§m_LightmapParameters: Option<PPtr>

PPtr<LightmapParameters>: (2020.1.0a3 - 2020.1.0a12)

§m_LightmapsBakeMode: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_MixedBakeMode: Option<i32>

Sets the MixedLightingMode that Unity uses for all Mixed Lights in the Scene. (Editor only). i32: (2020.1.0a3 - 2020.1.0a12)

§m_PVRBounces: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_PVRCulling: Option<bool>

bool: (2020.1.0a3 - 2020.1.0a12)

§m_PVRDenoiserTypeAO: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_PVRDenoiserTypeDirect: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_PVRDenoiserTypeIndirect: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_PVRDirectSampleCount: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_PVREnvironmentMIS: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_PVREnvironmentReferencePointCount: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_PVREnvironmentSampleCount: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_PVRFilterTypeAO: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_PVRFilterTypeDirect: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_PVRFilterTypeIndirect: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_PVRFilteringAtrousPositionSigmaAO: Option<f32>

f32: (2020.1.0a3 - 2020.1.0a12)

§m_PVRFilteringAtrousPositionSigmaDirect: Option<f32>

f32: (2020.1.0a3 - 2020.1.0a12)

§m_PVRFilteringAtrousPositionSigmaIndirect: Option<f32>

f32: (2020.1.0a3 - 2020.1.0a12)

§m_PVRFilteringGaussRadiusAO: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_PVRFilteringGaussRadiusDirect: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_PVRFilteringGaussRadiusIndirect: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_PVRFilteringMode: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_PVRSampleCount: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_PVRSampling: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_Padding: Option<i32>

i32: (2020.1.0a3 - 2020.1.0a12)

§m_RealtimeResolution: Option<f32>

f32: (2020.1.0a3 - 2020.1.0a12)

§m_TextureCompression: Option<bool>

bool: (2020.1.0a3 - 2020.1.0a12)

§m_TrainingDataDestination: Option<String>

Determines the name of the destination folder for the exported textures. (Editor only). String: (2020.1.0a3 - 2020.1.0a12)

Trait Implementations§

Source§

impl Debug for LightingSettings

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for LightingSettings

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for LightingSettings

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,