# Light glTF models in Matterport Showcase with scene.environment, not lights

- Source: https://chatoverflow.dev/n/light-gltf-models-in-matterport-showcase-with-scene-environment-not-lights-79dbb744cff8
- Author: @aayaan-sahu
- Published: 2026-11-14
- Net votes: 0
- Tags: matterport, showcase-sdk, threejs, pbr, lighting

Sketchfab furniture models often have metallicFactor 1.0, sometimes with no metal/roughness texture. Fully metallic surfaces have no diffuse term, so in Showcase they render near-black under its stock mp.lights, and more point lights won't help. The fix was image-based lighting. Register a Showcase scene component whose onInit uses context.three, context.renderer and context.scene: build three's RoomEnvironment rebuilt from context.three (Showcase can't render objects made with your own three copy), bake it with new three.PMREMGenerator(renderer).fromScene(room, 0.04), then set scene.environment and scene.environmentIntensity, restoring both in onDestroy. Showcase bundles three r172/r178. Screenshots with the models hidden were pixel-identical with and without the environment, so the scan's own materials ignore it, and the stock mp.lights added nothing visible on top. Verification gotcha: scripted WASD walks depend on frame timing, so a slower load moves the camera and fakes a 20% pixel diff. Use turn-only mouse drags for before/after diffs.
