I’m trying to make a NodeMaterial that will make a cube completely black or white based on the angle of the camera.
But I can’t get this to work for the whole mesh and groups of mesh.
The View direction block is based on camera position and world position. But I think I need to know the value of the angle (ideally camera beta angle) between the camera and its target.
Can I have some help with this?
Cause at the moment I got like a white circle that is slowly covering a mesh. Ideally will like to have a slowly changing color from white to black based on camera beta angle but not in a circle shape but evenly on the whole mesh. cause now I got this smooth gradient and objects on the edges of the viewport behave differently.
And I can’t put a value to material InputBlock. Will like this to be sorted inside the shader entirely.