mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
30 lines
789 B
C#
30 lines
789 B
C#
using AssetRipper.SourceGenerated.Subclasses.GISettings;
|
|
|
|
namespace AssetRipper.SourceGenerated.Extensions
|
|
{
|
|
public static class GISettingsExtensions
|
|
{
|
|
public enum EnvironmentAmbientMode
|
|
{
|
|
Realtime = 0,
|
|
Baked = 1,
|
|
}
|
|
|
|
public static void Initialize(this IGISettings settings)
|
|
{
|
|
settings.BounceScale = 1.0f;
|
|
settings.IndirectOutputScale = 1.0f;
|
|
settings.AlbedoBoost = 1.0f;
|
|
settings.TemporalCoherenceThreshold = 1.0f;
|
|
settings.EnvironmentLightingMode = (uint)EnvironmentAmbientMode.Realtime;
|
|
settings.EnableBakedLightmaps = true;
|
|
settings.EnableRealtimeLightmaps = true;
|
|
}
|
|
|
|
public static EnvironmentAmbientMode GetEnvironmentLightingMode(this IGISettings settings)
|
|
{
|
|
return (EnvironmentAmbientMode)settings.EnvironmentLightingMode;
|
|
}
|
|
}
|
|
}
|