-
Beta Was this translation helpful? Give feedback.
Answered by
drcmda
Feb 21, 2023
Replies: 1 comment 1 reply
-
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> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Suprhimp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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