
Unity 2021 Shaders and Effects Cookbook
Over 50 recipes to help you transform your game into a visually stunning masterpiece, 4th Edition
- 484 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Unity 2021 Shaders and Effects Cookbook
Over 50 recipes to help you transform your game into a visually stunning masterpiece, 4th Edition
About this book
Overcome the challenges and complexities involved in creating your own shaders with high-level realism using practical solutions, best practices, and the latest features of Unity 2021
Key Features
- Discover practical recipes for mastering post-processing effects and advanced shading techniques
- Learn the secrets of creating AAA quality shaders without writing long algorithms
- Create visually stunning effects for your games using Unity's VFX Graph
Book Description
Shaders enable you to create powerful visuals for your game projects. However, creating shaders for your games can be notoriously challenging with various factors such as complex mathematics standing in the way of attaining the level of realism you crave for your shaders.
The Unity 2021 Shaders and Effects Cookbook helps you overcome that with a recipe-based approach to creating shaders using Unity. This fourth edition is updated and enhanced using Unity 2021 features and tools covering Unity's new way of creating particle effects with the VFX Graph. You'll learn how to use VFX Graph for advanced shader development. The book also features updated recipes for using Shader Graph to create 2D and 3D elements. You'll cover everything you need to know about vectors, how they can be used to construct lighting, and how to use textures to create complex effects without the heavy math. You'll also understand how to use the visual-based Shader Graph for creating shaders without any code.
By the end of this Unity book, you'll have developed a set of shaders that you can use in your Unity 3D games and be able to accomplish new effects and address the performance needs of your Unity game development projects. So, let's get started!
What you will learn
- Use physically based rendering to fit the aesthetic of your game
- Create spectacular effects for your games by testing the limits of what shaders can do
- Explore advanced shader techniques for your games with AAA quality
- Use Shader Graph to create 2D and 3D elements for your games without writing code
- Master the math and algorithms behind the commonly used lighting models
- Get to grips with the Post-Processing Stack to tweak the appearance of your game
Who this book is for
This book is for game developers who want to start creating their first shaders in Unity 2021 and take their game to a whole new level by adding professional post-processing effects. The book assumes intermediate-level knowledge of Unity.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Chapter 1: Post Processing Stack
- Installing the Post Processing Stack
- Getting a filmic look using grain, vignetting, and depth of field
- Mimicking real life with bloom and anti-aliasing
- Setting the mood with color grading
- Creating a horror game look with fog
Technical requirements
Installing the Post Processing Stack
Getting ready

How to do it...
- Open Package Manager by going to Window | Pa...
Table of contents
- Unity 2021 Shaders and Effects Cookbook
- Fourth Edition
- Preface
- Chapter 1: Post Processing Stack
- Chapter 2: Creating Your First Shader
- Chapter 3: Working with Surface Shaders
- Chapter 4: Working with Texture Mapping
- Chapter 5: Understanding Lighting Models
- Chapter 6: Physically Based Rendering
- Chapter 7: Vertex Functions
- Chapter 8: Fragment Shaders and Grab Passes
- Chapter 9: Mobile Shader Adjustment
- Chapter 10: Screen Effects with Unity Render Textures
- Chapter 11: Gameplay and Screen Effects
- Chapter 12: Advanced Shading Techniques
- Chapter 13: Shader Graph β 2D
- Chapter 14: Shader Graph β 3D
- Other Books You May Enjoy