|
@@ -44,7 +44,8 @@ function getEncodingComponents( encoding ) {
|
|
|
case LogLuvEncoding:
|
|
|
return [ 'LogLuv', '( value )' ];
|
|
|
default:
|
|
|
- throw new Error( 'unsupported encoding: ' + encoding );
|
|
|
+ console.warn( 'THREE.WebGLProgram: Unsupported encoding:', encoding );
|
|
|
+ return [ 'Linear', '( value )' ];
|
|
|
|
|
|
}
|
|
|
|
|
@@ -103,7 +104,8 @@ function getToneMappingFunction( functionName, toneMapping ) {
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
- throw new Error( 'unsupported toneMapping: ' + toneMapping );
|
|
|
+ console.warn( 'THREE.WebGLProgram: Unsupported toneMapping:', toneMapping );
|
|
|
+ toneMappingName = 'Linear';
|
|
|
|
|
|
}
|
|
|
|