Struct LightmapSettings
Describes lightmap generation options
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/Renderer/Lightmaps.h
Syntax
public struct LightmapSettings : public ISerializable
Fields
AtlasSize
Single lightmap atlas size (width and height in pixels)
Declaration
public AtlasSizes AtlasSize = AtlasSizes::_1024
Field Value
AtlasSizes
|
BounceCount
Amount of indirect light GI bounce passes
Declaration
public int32 BounceCount = 1
Field Value
int32
|
ChartsPadding
Amount of pixel space between charts in lightmap atlas
Declaration
public int32 ChartsPadding = 3
Field Value
int32
|
CompressLightmaps
Enable/disable compressing lightmap textures (3 textures per lightmap with RGBA data in HDR)
Declaration
public bool CompressLightmaps = true
Field Value
bool
|
GlobalObjectsScale
Global scale for objects in the lightmap to increase quality
Declaration
public float GlobalObjectsScale = 1.0f
Field Value
float
|
IndirectLightingIntensity
Controls how much all lights will contribute to indirect lighting.
Declaration
public float IndirectLightingIntensity = 1.0f
Field Value
float
|
Quality
GI quality (range [0;100])
Declaration
public int32 Quality = 10
Field Value
int32
|
UseGeometryWithNoMaterials
Enable/disable rendering static light for geometry with missing or empty material slots
Declaration
public bool UseGeometryWithNoMaterials = true
Field Value
bool
|
Methods
Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)
Deserializes object from the input stream.
Declaration
public virtual void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) override
Parameters
DeserializeStream
stream
The input stream. |
ISerializeModifier
modifier
The deserialization modifier object. Always valid. |
Overrides
Serialize(SerializeStream& stream, const void* otherObj)
Serializes object to the output stream compared to the values of the other object instance (eg. default class object). If other object is null then serialize all properties.
Declaration
public virtual void Serialize(SerializeStream& stream, const void* otherObj) override
Parameters
SerializeStream
stream
The output stream. |
void
otherObj
The instance of the object to compare with and serialize only the modified properties. If null, then serialize all properties. |