Skip to content

Commit 11ff559

Browse files
authored
changed normals to world instead of view (#31074)
1 parent 1815e4f commit 11ff559

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nodes/lighting/HemisphereLightNode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import AnalyticLightNode from './AnalyticLightNode.js';
22
import { uniform } from '../core/UniformNode.js';
33
import { mix } from '../math/MathNode.js';
4-
import { normalView } from '../accessors/Normal.js';
4+
import { normalWorld } from '../accessors/Normal.js';
55
import { lightPosition } from '../accessors/Lights.js';
66
import { renderGroup } from '../core/UniformGroupNode.js';
77

@@ -73,7 +73,7 @@ class HemisphereLightNode extends AnalyticLightNode {
7373

7474
const { colorNode, groundColorNode, lightDirectionNode } = this;
7575

76-
const dotNL = normalView.dot( lightDirectionNode );
76+
const dotNL = normalWorld.dot( lightDirectionNode );
7777
const hemiDiffuseWeight = dotNL.mul( 0.5 ).add( 0.5 );
7878

7979
const irradiance = mix( groundColorNode, colorNode, hemiDiffuseWeight );

0 commit comments

Comments
 (0)