We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello to everyone. I was wondering if it's possible to make a shadow effect to a PShape. For example, if the sunlight is coming from east, make the shadow appear in the west, or in the other way, if the sunlight is coming form west make the shadow appear in the east.
Answers
https://forum.processing.org/two/discussion/12775/simple-shadow-mapping#latest
If you are working with P3D, you can experiment with
light()
anddirectionalLight()
. Please check them in the reference. Also check if you need to add a texture to your shape.Kf
Actually a few weeks, i was working with P3D, but it messes up everything related to the PShape, so i'm trying to find another path
You might be interested in work by @T_D and some interesting videos and blog posts on 2D shadow rendering.