Skip to main content

Environment API

Packages

PackageDescription
@realitycollective/iwsdk-environmentMeta IWSDK adapter for the Reality Collective WebXR Environment Extensions - drives IWSDK's own DomeGradient, light components, transform entities and AudioSource machinery from the engine-free @realitycollective/webxr-environment core, with a one-call registerEnvironment(world) setup and an ECS system that ticks the directors. Re-exports the core.
@realitycollective/threejs-environmentthree.js adapter for the Reality Collective WebXR Environment Extensions: an equirectangular gradient sky, linear and exponential fog, ambient and directional lighting, and Web Audio playback through AudioListener / PositionalAudio - all driven by the engine-free @realitycollective/webxr-environment core, which it re-exports.
@realitycollective/webxr-environmentEngine-free core of the Reality Collective WebXR Environment Extensions: the world around the player (sky, fog, ambient and key light) and the sound in it (cue registry, bus mix, retrigger policy, voices), described as plain data, interpolated by a host-ticked director and applied through engine ports. Pair with an engine adapter: threejs-environment or iwsdk-environment.
@realitycollective/xrblocks-environmentEXPERIMENTAL Google XR Blocks / plain three.js adapter for the Reality Collective WebXR Environment Extensions - drives sky, fog and lighting through the three.js adapter it builds on, and adds real-world depth occlusion and WebXR light estimation over an XR Blocks core.