Skip to content

Is it possible to use directional light shadow radius? #2766

Answered by drcmda
Suprhimp asked this question in Q&A
Discussion options

You must be logged in to vote

you can but according to the docs it only works with VSM shadow maps, generally all the threejs docs apply without exception, fiber doesn't change how any of this work.

btw there's an easier way

<directionalLight castShadow shadow-mapSize={1024} shadow-radius={10}>
  <orthographicCamera attach="shadow-camera" args={[-1000, 1000, 1000, -1000, 0.1, 5000]} />
</directionalLight>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Suprhimp
Comment options

Answer selected by Suprhimp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants