Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Projector on backfaces

Discussion in 'Shaders' started by Tabb, Jan 15, 2018.

  1. Tabb

    Tabb

    Joined:
    Jan 2, 2015
    Posts:
    40
    Hi,

    I'm trying to modify the projector shader so that it doesn't appear on the backfaces of objects.
    I'm almost done but it still appears (like a light grey).

    Here is the result with projector of "moon" on a "planet", and projectors of "moon" and "planet" on their own bodies.



    I can't figure why. See the project attached.

    Any ideas ?
     

    Attached Files:

  2. Samacvuk

    Samacvuk

    Joined:
    Jan 8, 2017
    Posts:
    30
    I did not catch exactly what you are trying to do but you can use
    Code (CSharp):
    1. Cull back
    For future reference please don't post the entire project, post only snipets of code or the shader x.x