How to paint only showed area of object on the camera

I have a cube and my camera located center of the cube. I’m just trying set material only showed on camera.

Below image result must be:
Top,Left,Right,Bottom → showed part of object
Front → showed Full

I’d like to set material only showed part of object.

Example: Set material only part of Top,Left,RIght,Bottom object and set material full Front.