Search Unity

How/where do I write my shaders?

Discussion in 'Shaders' started by Deleted User, Aug 19, 2017.

  1. Deleted User

    Deleted User

    Guest

    This is one thing that doesn't seem clear in the unity documentation (or perhaps I haven't found it). Do I just write it in VS2017? That isn't working...
     
  2. larku

    larku

    Joined:
    Mar 14, 2013
    Posts:
    1,422
    What's not working?
     
  3. Deleted User

    Deleted User

    Guest

    Writing it in VS 2017. It keeps inserting semi-colons, no idea if that's supposed to happen but it doesn't compile. I created a Pass thingy and it even syntax suggested it but for some reason the compiler says "Pass" is an unresolved identifier (doesn't know what it is) oddly enough.
     
  4. eXonius

    eXonius

    Joined:
    Feb 2, 2016
    Posts:
    207
    You can use any code editor or text editor to write your shader code. But by default Visual Studio doesn't do much syntax highlightning or suggestions for shader code (might exist plugins that solves this to some degree).

    I would suggest you start by looking at simple shaders and just copy them and change things instead of trying to write one from scratch.

    No idea why it would insert semicolons automatically though.
     
    Deleted User likes this.