web icon indicating copy to clipboard operation
web copied to clipboard

Playcanvas Shadow Material Generation Fail

Open spencer-e-pnt opened this issue 5 years ago • 2 comments

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.

spencer-e-pnt avatar Jun 02 '21 14:06 spencer-e-pnt

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:

  • 1.42.0
  • 1.41.2
  • 1.41.0
  • 1.40.0
  • 1.38.1
  • 1.35.0

atomarch avatar Jun 03 '21 21:06 atomarch

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

atomarch avatar Jun 09 '21 23:06 atomarch