|
@@ -105,6 +105,7 @@ function WebGLBackground( renderer, cubemaps, cubeuvmaps, state, objects, alpha,
|
|
boxMesh.material.uniforms.envMap.value = background;
|
|
boxMesh.material.uniforms.envMap.value = background;
|
|
boxMesh.material.uniforms.flipEnvMap.value = ( background.isCubeTexture && background.isRenderTargetTexture === false ) ? - 1 : 1;
|
|
boxMesh.material.uniforms.flipEnvMap.value = ( background.isCubeTexture && background.isRenderTargetTexture === false ) ? - 1 : 1;
|
|
boxMesh.material.uniforms.backgroundBlurriness.value = scene.backgroundBlurriness;
|
|
boxMesh.material.uniforms.backgroundBlurriness.value = scene.backgroundBlurriness;
|
|
|
|
+ boxMesh.material.uniforms.backgroundIntensity.value = scene.backgroundIntensity;
|
|
|
|
|
|
if ( currentBackground !== background ||
|
|
if ( currentBackground !== background ||
|
|
currentBackgroundVersion !== background.version ||
|
|
currentBackgroundVersion !== background.version ||
|
|
@@ -159,6 +160,7 @@ function WebGLBackground( renderer, cubemaps, cubeuvmaps, state, objects, alpha,
|
|
}
|
|
}
|
|
|
|
|
|
planeMesh.material.uniforms.t2D.value = background;
|
|
planeMesh.material.uniforms.t2D.value = background;
|
|
|
|
+ planeMesh.material.uniforms.backgroundIntensity.value = scene.backgroundIntensity;
|
|
|
|
|
|
if ( background.matrixAutoUpdate === true ) {
|
|
if ( background.matrixAutoUpdate === true ) {
|
|
|
|
|