天气预设调整

This commit is contained in:
2026-03-26 18:05:59 +08:00
parent 92e3dd7792
commit 2b0893b913

View File

@@ -1,19 +1,19 @@
export const DEFAULT_SCENE_PARAMS = {
elevation: 2,
azimuth: 180,
exposure: 0.1,
turbidity: 10,
rayleigh: 2,
bloomStrength: 0.1,
elevation: 1.5,
azimuth: -180,
exposure: 0.16,
turbidity: 2.7,
rayleigh: 4.0,
bloomStrength: 0.16,
bloomRadius: 0,
bloomThreshold: 0,
waterColor: '#001e0f',
cloudCoverage: 0.1,
cloudDensity: 0.5,
cloudElevation: 0.5,
fogDensity: 0.42,
fogHeight: 0.32,
fogRange: 0.55,
waterColor: '#18465a',
cloudCoverage: 0.26,
cloudDensity: 0.38,
cloudElevation: 0.66,
fogDensity: 0.16,
fogHeight: 0.26,
fogRange: 0.38,
rainEnabled: false,
rainScreenIntensity: 0.41,
rainVeilIntensity: 1.15,
@@ -24,7 +24,7 @@ export const DEFAULT_SCENE_PARAMS = {
snowEnabled: false,
snowIntensity: 0.65,
snowSpeed: 0.85,
lightningEnabled: true,
lightningEnabled: false,
lightningIntensity: 0.75,
mieCoefficient: 0.005,
mieDirectionalG: 0.8
@@ -32,7 +32,7 @@ export const DEFAULT_SCENE_PARAMS = {
export const WEATHER_PRESETS = {
default: {
label: '默认',
label: '夕阳',
params: {
...DEFAULT_SCENE_PARAMS
}
@@ -41,110 +41,118 @@ export const WEATHER_PRESETS = {
label: '日出',
params: {
...DEFAULT_SCENE_PARAMS,
"elevation": 0,
"azimuth": 0,
"exposure": 0.61,
"turbidity": 1,
"rayleigh": 3.21,
"bloomStrength": 0.24,
"bloomRadius": 0.42,
"waterColor": "#0b3f36",
"cloudCoverage": 0.4,
"cloudDensity": 0.18,
"cloudElevation": 0.98,
"fogDensity": 0,
"fogHeight": 1,
"fogRange": 0.02,
"rainEnabled": false,
"rainScreenIntensity": 0.41,
"rainVeilIntensity": 1.15,
"rainDropSize": 1,
"rainSpeed": 1,
"rainAudioEnabled": true,
"rainAudioVolume": 0.35,
"snowEnabled": false,
"snowIntensity": 0.65,
"snowSpeed": 0.85,
"lightningEnabled": true,
"lightningIntensity": 0.75
elevation: 2.5,
azimuth: 0,
exposure: 0.28,
turbidity: 1.0,
rayleigh: 2.18,
bloomStrength: 0.22,
bloomRadius: 0.38,
waterColor: '#2d6f74',
cloudCoverage: 0.34,
cloudDensity: 0.24,
cloudElevation: 0.9,
fogDensity: 0.12,
fogHeight: 0.58,
fogRange: 0.28,
lightningEnabled: false
}
},
noon: {
label: '正午',
params: {
...DEFAULT_SCENE_PARAMS,
elevation: 72,
azimuth: 180,
exposure: 0.27,
turbidity: 8.2,
rayleigh: 2.1,
bloomStrength: 0.14,
bloomRadius: 0.06,
waterColor: '#2b78a4',
cloudCoverage: 0.18,
cloudDensity: 0.28,
cloudElevation: 0.7,
fogDensity: 0.1,
fogHeight: 0.2,
fogRange: 0.24,
lightningEnabled: false
}
},
overcast: {
label: '阴天',
params: {
...DEFAULT_SCENE_PARAMS,
elevation: 24,
azimuth: 168,
exposure: 0.11,
turbidity: 15.8,
rayleigh: 1.2,
bloomStrength: 0.08,
bloomRadius: 0.18,
waterColor: '#315565',
cloudCoverage: 0.84,
cloudDensity: 0.88,
cloudElevation: 0.34,
fogDensity: 0.38,
fogHeight: 0.36,
fogRange: 0.62,
lightningEnabled: false
}
},
rainy: {
label: '下雨',
params: {
...DEFAULT_SCENE_PARAMS,
exposure: 0.08,
bloomStrength: 0.16,
bloomRadius: 0.24,
waterColor: '#0a2a24',
cloudCoverage: 0.78,
cloudDensity: 0.82,
cloudElevation: 0.42,
fogDensity: 0.58,
fogHeight: 0.36,
fogRange: 0.72,
elevation: 45,
azimuth: 170,
exposure: 0.085,
turbidity: 3.5,
rayleigh: 0,
bloomStrength: 0,
bloomRadius: 0,
waterColor: '#223d48',
cloudCoverage: 0.48,
cloudDensity: 0.92,
cloudElevation: 0.82,
fogDensity: 0.62,
fogHeight: 0.34,
fogRange: 0.78,
rainEnabled: true,
rainScreenIntensity: 0.38,
rainVeilIntensity: 1.25,
rainDropSize: 0.46,
rainSpeed: 1.18,
rainVeilIntensity: 1.4,
rainDropSize: 0.4,
rainSpeed: 1.16,
rainAudioEnabled: true,
rainAudioVolume: 0.35,
rainAudioVolume: 0.38,
lightningEnabled: true,
lightningIntensity: 0.75,
lightningIntensity: 0.68,
snowEnabled: false
}
},
storm: {
label: '正午',
params: {
...DEFAULT_SCENE_PARAMS,
"elevation": 90,
"azimuth": 180,
"exposure": 0.24,
"turbidity": 18.6,
"rayleigh": 4,
"bloomStrength": 0.18,
"bloomRadius": 0,
"waterColor": "#3378a3",
"cloudCoverage": 0.4,
"cloudDensity": 0.5,
"cloudElevation": 0.5,
"fogDensity": 0.41,
"fogHeight": 0.4,
"fogRange": 0.31,
"rainEnabled": false,
"rainScreenIntensity": 0.41,
"rainVeilIntensity": 1.15,
"rainDropSize": 1,
"rainSpeed": 1,
"rainAudioEnabled": true,
"rainAudioVolume": 0.35,
"snowEnabled": false,
"snowIntensity": 0.65,
"snowSpeed": 0.85,
"lightningEnabled": true,
"lightningIntensity": 0.75
}
},
snow: {
label: '降雪',
params: {
...DEFAULT_SCENE_PARAMS,
exposure: 0.11,
bloomStrength: 0.08,
waterColor: '#17343e',
cloudCoverage: 0.72,
cloudDensity: 0.7,
fogDensity: 0.52,
fogHeight: 0.4,
fogRange: 0.68,
elevation: 20,
azimuth: 172,
exposure: 0.1,
turbidity: 14.5,
rayleigh: 1.4,
bloomStrength: 0.06,
bloomRadius: 0.12,
waterColor: '#355160',
cloudCoverage: 0.88,
cloudDensity: 0.76,
cloudElevation: 0.38,
fogDensity: 0.56,
fogHeight: 0.42,
fogRange: 0.74,
rainEnabled: false,
lightningEnabled: false,
snowEnabled: true,
snowIntensity: 1.1,
snowSpeed: 1.2
snowIntensity: 1.18,
snowSpeed: 1.28
}
}
};