天气预设调整

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