Skip to content

Commit b860f38

Browse files
committed
Cube maps must be square.
1 parent 5c7b02d commit b860f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nodes/lighting/PointShadowNode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class PointShadowNode extends ShadowNode {
207207
const cubeDirections = isWebGPU ? _cubeDirectionsWebGPU : _cubeDirectionsWebGL;
208208
const cubeUps = isWebGPU ? _cubeUpsWebGPU : _cubeUpsWebGL;
209209

210-
shadowMap.setSize( shadow.mapSize.width, shadow.mapSize.height );
210+
shadowMap.setSize( shadow.mapSize.width, shadow.mapSize.width );
211211

212212
//
213213

0 commit comments

Comments
 (0)