Skip to main content

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

PropertyModifierTypeDescriptionDefined in
bottomreadonlyRgb-packages/webxr-environment/src/environment.ts:144
equator?readonlyRgbThe colour at the horizon. Derived from the ramp when omitted.packages/webxr-environment/src/environment.ts:146
intensity?readonlynumber-packages/webxr-environment/src/environment.ts:147
kindreadonly"gradient"-packages/webxr-environment/src/environment.ts:142
rotationY?readonlynumber-packages/webxr-environment/src/environment.ts:148
topreadonlyRgb-packages/webxr-environment/src/environment.ts:143