From a0b4ca03e2c052525123677a738e50338cd3ef99 Mon Sep 17 00:00:00 2001 From: Brandel Zachernuk Date: Thu, 12 Feb 2026 16:25:30 -0800 Subject: [PATCH] Introduces lighting Added the environmentMap attribute and environmentMapReady promise to the IDL, Added initial language about the use of a PBR shading model and IBL. fixes 48 fixes 47 --- index.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 07b63f2..4f697a3 100644 --- a/index.html +++ b/index.html @@ -384,8 +384,12 @@

readonly attribute Promise<HTMLModelElement> ready; readonly attribute DOMPointReadOnly boundingBoxCenter; readonly attribute DOMPointReadOnly boundingBoxExtents; + attribute DOMMatrixReadOnly entityTransform; + attribute USVString environmentMap; + readonly attribute Promise<undefined> environmentMapReady; + }; @@ -417,10 +421,14 @@

Rendering

+

The model SHOULD be rendered according to a realtime, physically-based rendering (PBR) shading model, and lit by an image-based light.

+ +

Environment map

+

If provided, an environment map MUST be interpreted as an equirectangular environment map. If an environmentMap is not specified, the User Agent MUST provide an appropriate map.

+ + - -

Orientation/camera

@@ -450,6 +458,7 @@

Events

+

The environmentMapReady Promise resolves when an environment map resource has been loaded, or is rejected if the resource is unable to be loaded.