function obtainTranslucentCommandExecutionFunction(scene) {
  if (scene._environmentState.useOIT) {
    if (!defined(scene._executeOITFunction)) {
      const { view, context } = scene;
      scene._executeOITFunction = function (
        scene,
        executeFunction,
        passState,
        commands,
        invertClassification,
      ) {
        view.globeDepth.prepareColorTextures(context);
        view.oit.executeCommands(
          scene,
          executeFunction,
          passState,
          commands,
          invertClassification,
        );
      };
    }
    return scene._executeOITFunction;
  }
  if (scene.frameState.passes.render) {
    return executeTranslucentCommandsBackToFront;
  }
  return executeTranslucentCommandsFrontToBack;
}
Determine how translucent surfaces will be handled.

When OIT is enabled, then this will delegate to OIT.executeCommands.
Otherwise, it will just be executeTranslucentCommandsBackToFront
for render passes, or executeTranslucentCommandsFrontToBack for
other passes.

@param {Scene} scene The scene.
@returns {Function} A function to execute translucent commands.