Command buffer editing works in only left eye of VR display

Hi, I have a question about editing command buffer in Unity while using VR device (I’m currently using Varjo XR-4).

I want to edit the game view color by using shader with the code below.

public Camera camera;
public Material material;
private CommandBuffer commandBuffer;

void Start()
{
    commandBuffer = new CommandBuffer();
    commandBuffer.name = "Apply Shader Command Buffer";

    int tempID = Shader.PropertyToID("_TempTexture");
    commandBuffer.GetTemporaryRT(tempID, -1, -1, 0, FilterMode.Bilinear);

    commandBuffer.Blit(BuiltinRenderTextureType.CameraTarget, tempID);

    commandBuffer.Blit(tempID, BuiltinRenderTextureType.CameraTarget, material);

    camera.AddCommandBuffer(CameraEvent.AfterSkybox, commandBuffer);
}

The result, however, only works in left eye, like the photo below.

I want to make the shader effect equally to both eyes.
I’ve tried to create two different camera objects, set their target eye to each display, and applied code to both, but it still does not work.

Is it a problem of command buffer, or other thing?
Please help me to resolve this problem. Thank you.

What’s the shader the blit material is using?


And what’s the xr rendering mode your device is using? Multi-Pass or Single-pass instanced?
If it’s Single-pass instanced, you may need to add some macros in your blit shader, just refer to this page:Unity - Manual: Single-pass instanced rendering and custom shaders