diff --git a/src/react-components/avatar-selector.js b/src/react-components/avatar-selector.js index 0af325ceae217f3375869768d5d6a2f521d8a985..81b30d6057b436a296b9856f742b1bb907514495 100644 --- a/src/react-components/avatar-selector.js +++ b/src/react-components/avatar-selector.js @@ -123,8 +123,10 @@ class AvatarSelector extends Component { } componentDidMount() { + // <a-scene> component not initialized until scene element mounted and loaded. this.scene.addEventListener("loaded", () => { this.scene.setAttribute("renderer", { gammaOutput: true, sortObjects: true, physicallyCorrectLights: true }); + this.scene.setAttribute("gamma-factor", ""); }); }