Git Product home page Git Product logo

lab05-stylization's Introduction

Lab 05 - Stylization!

Let's practice adding stylization to a 3D scene using Unity's shader graph!

Introduction

We will be stylizing a "toon" look by creating a shader in Unity that supports shadows and multiple lights in real-time! In the process, you will gain some familiarity with Unity’s shader graph.

What’s provided:

This tutorial video will cover the base code, and then go over the process of making a limited version of a toon shader.

Lab Overview and Puzzle 1 Tutorial Video

Lab Puzzles:

The goal of each puzzle will be to replicate the look of each puzzle’s image.

1. Puzzle 1: Simple two-tone toon shading

277997527-f27aec24-0d04-4b73-95d3-b55e2da13603
  • Follow the tutorial to create a 2 band toon shader, and then create multiple materials based off of the shader graph
  • Attach those materials to the objects (the sphere and plane) in the default scene "Lab Scene 1" to produce a look similar to the one above!

2. Puzzle 2: Leveled-up toon shading

277998209-12d0a844-b6a8-4054-86f9-ee13b5533bf2
  • Edit your materials to allow for a 3rd color in your scene, such that you have highlights, midtones, shadows on your objects. Edit your shader so that the thresholds on these values are adjustable.
  • Shade the sonic and shadow receiving plane in "Lab Scene 2" to get a look similar to the one above!

3. Puzzle 3: Stylized Shadow

277998492-be35de1e-1157-4a6e-b4ea-ba015f2750c9
  • Use one of the provided texture png’s in order to add a screenspace shadow pattern onto the shadows of the scene!
  • Hint 1: What does the "ShadowAttenuation" variable do?

Extra Credit:

  • Add some soft interpolation at the edges of your bands, for smooth transitions between color bands. Create a "smoothness" parameter that adjusts the degree of smoothness!

Submission:

  • Create a pull request against this repository
  • In your readme, add screenshots of your results for Puzzles 1, 2 and 3
  • Profit

lab05-stylization's People

Contributors

logancho avatar rahwang avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.