Skip to content
Snippets Groups Projects
Commit 7c3487a9 authored by Robert Long's avatar Robert Long
Browse files

Added comment explaining setting renderer attributes.

parent 7f25fecb
No related branches found
No related tags found
No related merge requests found
...@@ -123,8 +123,10 @@ class AvatarSelector extends Component { ...@@ -123,8 +123,10 @@ class AvatarSelector extends Component {
} }
componentDidMount() { componentDidMount() {
// <a-scene> component not initialized until scene element mounted and loaded.
this.scene.addEventListener("loaded", () => { this.scene.addEventListener("loaded", () => {
this.scene.setAttribute("renderer", { gammaOutput: true, sortObjects: true, physicallyCorrectLights: true }); this.scene.setAttribute("renderer", { gammaOutput: true, sortObjects: true, physicallyCorrectLights: true });
this.scene.setAttribute("gamma-factor", "");
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment