Search Unity

Question Absolute beginner trying to write an easy grid shader?

Discussion in 'Shaders' started by Cipiox, Aug 3, 2021.

  1. Cipiox

    Cipiox

    Joined:
    Jan 22, 2019
    Posts:
    1
    Hi, as the title states, I'm very much a beginner in writing shaders.
    I want to create a shader that creates this simple grid-like appearance:

    I have scoured for good tutorials, but I thought it might be a good idea to post here to get help from more experienced programmers on how to approach this.

    I am looking to use an Unlit shader with code being done in the fragment shader because I want to practice my coding rather than using the shader graph.

    Thank you in advance!
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,336
    Google "Unity Grid Shader" and you'll get a few thousand examples.

    From there if you have questions about how a specific one works, please feel free to ask about that.