Skip to content

Commit

Permalink
Background: Added backgroundBlurriness
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Jun 26, 2023
1 parent 027ed7f commit ed7427b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/jsm/renderers/common/Background.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import DataMap from './DataMap.js';
import { Color, Mesh, SphereGeometry, BackSide } from 'three';
import { context, positionWorldDirection, MeshBasicNodeMaterial } from '../../nodes/Nodes.js';
import { context, positionWorldDirection, backgroundBlurriness, MeshBasicNodeMaterial } from '../../nodes/Nodes.js';

let _clearAlpha;
const _clearColor = new Color();
Expand Down Expand Up @@ -55,7 +55,8 @@ class Background extends DataMap {

this.boxMeshNode = context( backgroundNode, {
// @TODO: Add Texture2D support using node context
getUVNode: () => positionWorldDirection
getUVNode: () => positionWorldDirection,
getSamplerLevelNode: () => backgroundBlurriness
} );

const nodeMaterial = new MeshBasicNodeMaterial();
Expand Down

0 comments on commit ed7427b

Please sign in to comment.