I already use cloning SkinnedMeshRenderer way to achieve the ghost effect.Now I just want use another way to do it.I just want blur my character in the scene.And I have two cameras.
My first cam’s Clear Flags is skybox, Culling mask is everything except my character and depth is 0.
My second cam is a child of my first cam.It’s Clear Flags is Don’t clear,Culling mask is only my character, and depth is 1 .
My problems:
- I put the MotionBlur.cs(which provides by unity) on my second camera, but when my camera move, everything will blur, not just my character.
- I read the code in MotionBlur.cs: Graphics.Blit (source, accumTexture, material); Graphics.Blit (accumTexture, destination); I notice accumTexture is a accumulation buffer, which stores the screen tex from the beginning. If accumTexture never clear, why my character’s ghost is just a few amount. It should be a lot from the beginning to the end of moving.
