File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import AnalyticLightNode from './AnalyticLightNode.js' ;
22import { uniform } from '../core/UniformNode.js' ;
33import { mix } from '../math/MathNode.js' ;
4- import { normalView } from '../accessors/Normal.js' ;
4+ import { normalWorld } from '../accessors/Normal.js' ;
55import { lightPosition } from '../accessors/Lights.js' ;
66import { 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 ) ;
You can’t perform that action at this time.
0 commit comments