-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shadow problems with THREE.DirectionalLight and THREE.MeshBasicMaterial #7617
Comments
Shadow darkness was removed? #7321
|
I do think shadows are still being worked on though #6420 not sure if this landed in r73? |
I have an |
Try and use the development version r74 and see what you get. Lots of things have been fixed. |
I changed the |
@Mugen87 is using |
Ah! True. |
Thanks for your feedback! @mrdoob and @WestLangley : Is using Besides, maybe it's a good idea to include the new shadow handling to the migration guide. I can image, that other users run in the same issue... |
For the time being it's ok. However For your use case, you may want to use case... Any reason you're using
Done. |
just fyi this example looks like this over here: |
I want a consistent color over the entire surface of a 3D object. @mrdoob Thanks again for your answers! |
By the way, i close this issue because my original problem is solved! |
Looks correct to me...? |
so the shadow is supposed to look dashed? |
Yeah, I guess these are the expected artefacts when combining |
meshbasicmaterial cant cast shadow anymore, use the new shadowMaterial instead. mrdoob/three.js#7617 (comment)
Was trying to get softer shadows and then discovered a trick of using emissive color on the object receiving the shadow. This might help someone. |
Hi everybody!
i want to upgrade three.js to R73 in my current project. Unfortunately, i'm getting strange shadows casted by a
THREE.DirectionalLight
on aTHREE.MeshBasicMaterial
. Check out the following screenshots:three.js R72 👍

three.js R73 👎

As you can see, the shadow in R73 is totally black.
OS: OS X Yosemite 10.10.5
GPU: AMD Radeon R9 M295X 4096 MB
Browser: Chrome 46.0.2490.86 (64-bit)
The text was updated successfully, but these errors were encountered: