Рет қаралды 18,546
Halftone is a technique used for printing where tiny dots of different colors and sizes are layered to look like a full-colour image. In this video, I use Shader Graph to implement a similar technique, where the shaded regions of the image are converted into differently-sized darkened dots.
------------
👇 Download the project on GitHub: github.com/daniel-ilett/shaders-halftone
📰 Read this tutorial in article format instead: danielilett.com/2022-07-28-tut6-1-halftone/
🎮 This project uses Unity 2021.3.0f1 (LTS) and URP 12.1.6, but it should work with other versions.
------------
📚 Get a copy of my shader book here: www.dpbolvw.net/click-100742141-12898971?url=https%3A%2F%2Flink.springer.com%2Fbook%2F10.1007%2F978-1-4842-8652-4
🎨 Triceratops model by Zacxophone: sketchfab.com/3d-models/animated-triceratops-skeleton-06cb55f941d94dc8b95ac46f92d89e7c
✨ Grab Snapshot Shaders Pro here: assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/snapshot-shaders-pro-for-urp-hdrp-160556?aid=1101lfDLn
------------
💬 Join the Discord: discord.gg/tPQEUwPpb3
💖 Support me on Patreon: www.patreon.com/danielilett?fan_landing=true
☕ Or throw me a one-off coffee on Ko-fi: ko-fi.com/danielilett
------------
00:00 Introduction
00:32 How It Works
01:12 Lighting.hlsl Code
02:12 GetMainLight Subgraph
03:23 Halftone Properties
05:50 Halftone Behavior
10:28 Usage Examples
#gamedev #shaders #madewithunity