提交 53424eca 编写于 作者: W WestLangley

Use sRGBEncoding

上级 8447ee41
......@@ -141,7 +141,7 @@
.setPath( './textures/cube/pisa/' )
.load( ldrUrls, function () {
ldrCubeMap.encoding = THREE.GammaEncoding;
ldrCubeMap.encoding = THREE.sRGBEncoding;
ldrCubeRenderTarget = pmremGenerator.fromCubemap( ldrCubeMap );
......
......@@ -127,7 +127,7 @@
.setPath( './textures/cube/pisa/' )
.load( ldrUrls, function () {
ldrCubeMap.encoding = THREE.GammaEncoding;
ldrCubeMap.encoding = THREE.sRGBEncoding;
ldrCubeRenderTarget = pmremGenerator.fromCubemap( ldrCubeMap );
......
......@@ -7,7 +7,7 @@ import { AudioAnalyser } from './audio/AudioAnalyser.js';
import { PerspectiveCamera } from './cameras/PerspectiveCamera.js';
import {
FlatShading,
GammaEncoding,
sRGBEncoding,
LinearEncoding,
StaticDrawUsage,
DynamicDrawUsage,
......@@ -1722,27 +1722,27 @@ Object.defineProperties( WebGLRenderer.prototype, {
gammaInput: {
get: function () {
console.warn( 'THREE.WebGLRenderer: .gammaInput has been removed. Please define the correct color spaces for textures via Texture.encoding instead.' );
console.warn( 'THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.' );
return false;
},
set: function () {
console.warn( 'THREE.WebGLRenderer: .gammaInput has been removed. Please define the correct color spaces for textures via Texture.encoding instead.' );
console.warn( 'THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.' );
}
},
gammaOutput: {
get: function () {
console.warn( 'THREE.WebGLRenderer: .gammaOutput has been removed. Please use WebGLRenderer.outputEncoding instead.' );
return ( this.outputEncoding === GammaEncoding ) ? true : false;
console.warn( 'THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead.' );
return false;
},
set: function ( value ) {
console.warn( 'THREE.WebGLRenderer: .gammaOutput has been removed. Please use WebGLRenderer.outputEncoding instead.' );
this.outputEncoding = ( value === true ) ? GammaEncoding : LinearEncoding;
console.warn( 'THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead.' );
this.outputEncoding = ( value === true ) ? sRGBEncoding : LinearEncoding;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册