We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfd9334 commit 73b4007Copy full SHA for 73b4007
examples/src/examples/loaders/glb.tsx
@@ -33,6 +33,12 @@ class GLBExample extends Example {
33
component.aspectRatioMode = pc.ASPECT_AUTO;
34
});
35
36
+ // enable all lights from the glb
37
+ const lightComponents: Array<pc.LightComponent> = entity.findComponents("light");
38
+ lightComponents.forEach((component) => {
39
+ component.enabled = true;
40
+ });
41
+
42
let time = 0;
43
let activeCamera = 0;
44
app.on("update", function (dt) {
0 commit comments