Playcanvas Shader Material not working ( XRExtras.PlayCanvas.makeShadowMaterial)

Hi,

The shader properties for playcanvas have changed in latest engine update - if you could please update this function

this is the fix required below

xrcontroller.prototype.makeShadowMaterial = function({ pc, material }) {
  const n = material.resource || material
  n.chunks.APIVersion = pc.CHUNKAPI_1_65
  n.chunks.endPS = "\n      litArgs_opacity = mix(light0_shadowIntensity, 0.0, shadow0);\n      gl_FragColor.rgb = vec3(0.0);\n    "
  n.blendType = pc.BLEND_PREMULTIPLIED
  n.update()
}

Thanks

thanks for the flag - we’ll get this updated!