Skip to main content

Interface: EnvironmentPortHost

Defined in: packages/webxr-environment/src/sensing.ts:103

What a port is handed so it can talk back. Implemented by the director.

Methods

estimate()

estimate(lighting: EstimatedLighting | null): void;

Defined in: packages/webxr-environment/src/sensing.ts:110

New measured lighting, or null when estimation stopped and the app's own environment should take over again.

Parameters

ParameterType
lightingEstimatedLighting | null

Returns

void


report()

report(report: SensingReport): void;

Defined in: packages/webxr-environment/src/sensing.ts:105

State changed for one feature. Cheap to call; identical reports are dropped.

Parameters

ParameterType
reportSensingReport

Returns

void