Skip to main content

Interface: EnvironmentSpec

Defined in: webxr-environment/src/environment.ts:217

A PARTIAL description of the environment.

The two ways of saying "nothing" are distinct and both meaningful:

  • omitted - leave this slot exactly as it is. { fog: null } clears the fog and touches nothing else.
  • null - turn this slot off.

That is what makes presets composable: a "storm" preset can carry only the fog and sky it cares about and inherit the lighting it is layered onto.

Properties

PropertyModifierTypeDefined in
ambient?readonlyAmbientLightSpec | nullwebxr-environment/src/environment.ts:220
fog?readonlyFogSpec | nullwebxr-environment/src/environment.ts:219
ibl?readonlyIblSpec | nullwebxr-environment/src/environment.ts:222
key?readonlyKeyLightSpec | nullwebxr-environment/src/environment.ts:221
sky?readonlySkySpec | nullwebxr-environment/src/environment.ts:218