Skip to content

Commit

Permalink
revision
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Mar 15, 2024
1 parent d97cc91 commit a530904
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/jsm/renderers/common/Background.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ class Background extends DataMap {

if ( backgroundMesh === undefined ) {

const backgroundMeshNode = context( vec4( backgroundNode ), {
const backgroundMeshNode = context( vec4( backgroundNode ).mul( backgroundIntensity ), {
// @TODO: Add Texture2D support using node context
getUV: () => normalWorld,
getTextureLevel: () => backgroundBlurriness
} ).mul( backgroundIntensity );
} );

let viewProj = modelViewProjection();
viewProj = viewProj.setZ( viewProj.w );
Expand Down Expand Up @@ -83,7 +83,7 @@ class Background extends DataMap {

if ( sceneData.backgroundCacheKey !== backgroundCacheKey ) {

sceneData.backgroundMeshNode.node = vec4( backgroundNode );
sceneData.backgroundMeshNode.node = vec4( backgroundNode ).mul( backgroundIntensity );

backgroundMesh.material.needsUpdate = true;

Expand Down

0 comments on commit a530904

Please sign in to comment.