Why doesn't shadow.mapSize work

I wanted to improve the sharpness of the shadows, but adjusting shadow.mapSize didn’t work

Try to set map.setSize (see the third line below):

directionalLight.shadow.mapSize.width = state.mapSize
directionalLight.shadow.mapSize.height = state.mapSize
directionalLight.shadow.map.setSize( state.mapSize, state.mapSize );
1 Like

thank you, you are right

1 Like