Skip to content

Commit 99664c7

Browse files
committed
Add default value for groundAlbedo to reset it when it changes to undefined
1 parent d86cafa commit 99664c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/atmosphere/src/SkyMaterial.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ export const skyMaterialParametersDefaults = {
5151
sun: true,
5252
moon: true,
5353
moonAngularRadius: 0.0045, // ≈ 15.5 arcminutes
54-
lunarRadianceScale: 1
54+
lunarRadianceScale: 1,
55+
groundAlbedo: new Color(0)
5556
} satisfies SkyMaterialParameters
5657

5758
export interface SkyMaterialUniforms {

0 commit comments

Comments
 (0)