API

Function isShadowGeneratorReady

  • Whether the generator's shadow pass is prepared for the caster set last supplied through setShadowTaskCasterMeshes() at runtime.

    The material views of new caster families are imported asynchronously. Until they land the shadow map is not rendered, so receivers sample a stale or empty map. An on-demand renderer can skip frames while this is false. It stays false after a failed preparation; use whenShadowGeneratorReady to observe the failure.

    Does not replace awaiting registerSceneWithShadowSupport(): casters supplied before registration are prepared by it, and are reported ready before then.

    Not a GPU recovery signal: after a device loss, wait for the onRecovered option of enableDeviceLostSceneRecovery(), then use this for the caster preparation.

    Parameters

    Returns boolean