Replies: 1 comment 3 replies
-
it's // Set shadowmap
if (shadows) {
gl.shadowMap.enabled = true
if (typeof shadows === 'object') Object.assign(gl.shadowMap, shadows)
else gl.shadowMap.type = THREE.PCFSoftShadowMap
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As of the latest r3f, you can no longer do:
However acccording to the typescript documentation, you can pass a
WebGLShadowMap
to theshadows
prop.What's the proper way to instansiate that shadow map? Any code samples?
Beta Was this translation helpful? Give feedback.
All reactions