Interface: IblGradient
Defined in: packages/webxr-environment/src/environment.ts:141
Image-based lighting: what the world reflects and how it lights everything that is not lit by the key light.
WHY THIS IS A SLOT AND NOT AN AFTERTHOUGHT
Without it a physically-based material has nothing to reflect. An app can
set a beautiful sky through this package and still get a matte grey sphere,
because on every one of the three hosts the sky and the environment map are
two separate facilities: scene.background and scene.environment on
three.js, DomeGradient and IBLGradient on IWSDK. Owning one and not the
other is owning half of the lighting.
The three kinds are the ones the hosts already ship. room is IWSDK's
built-in room probe, which three.js also has as RoomEnvironment.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
bottom | readonly | Rgb | - | packages/webxr-environment/src/environment.ts:144 |
equator? | readonly | Rgb | The colour at the horizon. Derived from the ramp when omitted. | packages/webxr-environment/src/environment.ts:146 |
intensity? | readonly | number | - | packages/webxr-environment/src/environment.ts:147 |
kind | readonly | "gradient" | - | packages/webxr-environment/src/environment.ts:142 |
rotationY? | readonly | number | - | packages/webxr-environment/src/environment.ts:148 |
top | readonly | Rgb | - | packages/webxr-environment/src/environment.ts:143 |