Search code examples
three.jsaframe

Output encoding in Aframe


This question is related to AFRAME: Android metallnesMap and roughnessMap issue

Main idea: I want to see the same metal texture on iOS and Android devices in my aframe project. In the viewer it is realy the same, but there only three.js

Can I change somehow WebGLRenderer.outputEncoding in Aframe? The propertie is undefined for a scene - this.el.sceneEl.renderer.outputEncoding.


Solution

  • Just add renderer="colorManagement: true" scene attribute to set renderer.outputEncoding = THREE.sRGBEncoding;