Zip up your submissions with your NYU id as the file name (e.g. rn47.zip) and upload them to this google drive folder by next class. Do not include the Library, Temp or Logs folders from your Unity projects or your zip file will be gigantic! Include only the following files and folders in your submission (your .sln file will be named differently):

Remember that your best efforts and attempts are what counts the most! We will discuss this on Monday.

Textured Glass

Your homework for next week is to recreate the glass effect we started in class and add a texture to it. I am asking you to recreate the basic effect rather than giving you a Unity project to hack on to help build muscle-memory around the Unity UI.

Recreating Shader from Class

  1. Start a new Unity project from Unity Hub. Use Unity 6 (my version is 6000.0.43f1) and the Universal 3D template
  2. Create "Material", "Shader", and "Mesh" folders in the Project
  3. Add a 3D model to the Mesh folder and the scene -- use this vapor wave bust if you like
  4. Add a sphere to the scene (GameObject > 3D Object > Sphere)
  5. Create a new lit ShaderGraph asset in the Shader folder (right click in the project tab > Create > Shader Graph > URP > Lit Shader Graph)
    1. Title it "Glass"
  6. Create a new material in the Material folder also titled "Glass"
  7. Select the new Glass material and in the Inspector change the Shader field to "Shader Graphs/Glass"

  1. Apply the Glass material to the sphere (drag it onto the sphere)
  2. Double click the Glass shader to edit it. You can add nodes by pressing the space bar and searching for the node by its name.
  3. Ensure the Surface Type is set to Transparent in the Graph Settings (press the info icon if graph settings are not visible)

  1. Recreate the following node graph to achieve a basic refractive glass effect (click to enlarge).

Make the Glass Textured

Make the glass textured. It should look something like this

Bonus: Checkerboard Cube

Using the techniques above can you make a shader for a checkerboard cube, something like this?