更新时间:2021-07-16 12:59:52
封面
版权信息
Credits
About the Authors
www.PacktPub.com
Preface
Chapter 1. Creating Your First Shader
Introduction
Creating a basic Standard Shader
Migrating Legacy Shaders from Unity 4 to Unity 5
Adding properties to a shader
Using properties in a Surface Shader
Chapter 2. Surface Shaders and Texture Mapping
Diffuse shading
Using packed arrays
Adding a texture to a shader
Scrolling textures by modifying UV values
Normal mapping
Creating a transparent material
Creating a Holographic Shader
Packing and blending textures
Creating a circle around your terrain
Chapter 3. Understanding Lighting Models
Creating a custom diffuse lighting model
Creating a Toon Shader
Creating a Phong Specular type
Creating a BlinnPhong Specular type
Creating an Anisotropic Specular type
Chapter 4. Physically Based Rendering in Unity 5
Understanding the metallic setup
Adding transparency to PBR
Creating mirrors and reflective surfaces
Baking lights in your scene
Chapter 5. Vertex Functions
Accessing a vertex color in a Surface Shader
Animating vertices in a Surface Shader
Extruding your models
Implementing a snow shader
Implementing a volumetric explosion
Chapter 6. Fragment Shaders and Grab Passes
Understanding Vertex and Fragment Shaders
Using grab pass
Implementing a Glass Shader
Implementing a Water Shader for 2D games
Chapter 7. Mobile Shader Adjustment
What is a cheap shader?
Profiling your shaders
Modifying our shaders for mobile
Chapter 8. Screen Effects with Unity Render Textures
Setting up the screen effects script system
Using brightness saturation and contrast with screen effects
Using basic Photoshop-like Blend modes with screen effects
Using the Overlay Blend mode with screen effects
Chapter 9. Gameplay and Screen Effects
Creating an old movie screen effect
Creating a night vision screen effect
Chapter 10. Advanced Shading Techniques
Using CgInclude files that are built into Unity
Making your shader world modular with CgInclude
Implementing a Fur Shader
Implementing heatmaps with arrays
Index