From 7c3487a9f20daf0077772df2afd974977837117f Mon Sep 17 00:00:00 2001 From: Robert Long <robert@robertlong.me> Date: Mon, 6 Aug 2018 18:07:05 -0700 Subject: [PATCH] Added comment explaining setting renderer attributes. --- src/react-components/avatar-selector.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/react-components/avatar-selector.js b/src/react-components/avatar-selector.js index 0af325cea..81b30d605 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", ""); }); } -- GitLab