outputColorSpace not is WebGLRenderer property
Davidyanlong opened this issue · 1 comments
Davidyanlong commented
` function init() {
renderer = new THREE.WebGLRenderer( { preserveDrawingBuffer: true } );
renderer.autoClear = false;
// error
renderer.outputColorSpace = THREE.SRGBColorSpace;
document.body.appendChild( renderer.domElement );
`
stevinz commented
What version of Three.js are you using? This library was recently updated (to v1.0.14) to use the most recent version of Three.js (i.e. v154). There were changes made in Three.js v152 that include renaming renderer.outputEncoding
to renderer.outputColorSpace
.
If you need to use a version of Three.js prior to v152, try using an earlier release of this library, most likely v1.0.13. Available remotely from unpkg: "https://unpkg.com/three-wboit@1.0.13/build/index.module.js"