Pixels of an object facing location

Wondering if anyone has any ideas about how to construct a material that produces an alpha 0-1 using the pixels of an object that is facing a certain location. Say a material that always faces 0,0,0.

Reference to the idea:

I know that using world position and pixel normals within the material is my best bet. however i really dont know which method to use in order to select the pixels facing the desired location.

This does it for facing 0,0,0

I -think-, to get coord X, just subtract it from word pos before the normalize.

1 Like

This is exactly what I was looking for! Thanks so much. material trigonometry still messes with my head no matter how much I tinker with it but its getting better :stuck_out_tongue:

For those looking in future, this is my complete setup:

2 Likes