8thwall / web

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

Playcanvas Shadow Material Generation Fail #168

Closed spencer-evans-pnt closed 3 years ago

spencer-evans-pnt commented 3 years ago

With the new Playcanvas engine release 1.42.0, support for shadow coordinates generation in VS was removed. This has broken the shadow material generation in xrextras Playcanvas.

Error in material "XR Shadow Material" with flags 65548 ERROR: Undefined function 'getShadowPCF3x3VS()' used in the following call chain:getEmission

This error is occurring in the latest AR World Tracking Starter Kit project.

atomarch commented 3 years ago

Thanks for linking your fix. I've tested it against a handful of various PlayCanvas engine versions to make sure it's backwards compatible, and everything seems fine:

atomarch commented 3 years ago

@spencer-evans-pnt FYI, this fix is now live on CDN