'How to set material only showed area on 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 .

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source