8thwall / web

8th Wall Web projects and resources.
515 stars 326 forks source link

Fix PlayCanvas shadow shader #221

Closed willeastcott closed 1 year ago

willeastcott commented 1 year ago

Update shader in response to this:

https://github.com/playcanvas/engine/pull/5104/files#diff-70e047f5d3d62ac41bbb7989c4c561de61ec62a68a633f8fdfd2852fc2e28893

The code has been dramatically simplified. As an added bonus, this PR allows you to edit the shadow intensity in the PlayCanvas Editor.

https://github.com/8thwall/web/assets/697563/fa681c78-7eea-41d3-a286-7548e2dc9323