I am using the following code from a class to initialize the renderer:
// setup renderer
this.renderer = new THREE.WebGLRenderer( { antialias: true });
this.renderer.setClearColor (0xffffff, 1); // set background color
this.renderer.outputEncoding = THREE.sRGBEncoding;
this.renderer.toneMapping = THREE.ACESFilmicToneMapping;
this.renderer.toneMappingExposure = 1;
this.renderer.physicallyCorrectLights = true;
The following code adds a white image as background to the scene:
var texture11 = new THREE.TextureLoader().load("https://www.publicdomainpictures.net/pictures/30000/velka/plain-white-background.jpg");
this.scene.background = texture11 ;
When using toneMapping
, the white image is being rendered as grey in the scene as scene below:
How to make it render as its original color?
question from:
https://stackoverflow.com/questions/65840482/how-to-avoid-background-image-from-turning-from-white-to-grey-when-using-tonemap 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…