- Unity 2018 Shaders and Effects Cookbook
- John P. Doran Alan Zucconi
- 186字
- 2021-06-18 19:04:12
Creating a basic Standard Shader
In Unity, when we create a game object, we then attach additional functionality through the use of components. In fact, every game object is required to have a Transform component; there are a number of components included in Unity already, and we create components of our own when we write scripts that extend from MonoBehaviour.
All the objects that are part of a game contain a number of components that affect their look and behavior. While scripts determine how objects should behave, renderers decide how they should appear on the screen. Unity comes with several renderers, depending on the type of object that we are trying to visualize; every 3D model typically has a MeshRenderer component attached to it. An object should have only one renderer, but the renderer itself can contain several materials. Each material is a wrapper for a single shader, the final ring in the food chain of 3D graphics. The relationships between these components can be seen in the following diagram:
Understanding the difference between these components is essential for understanding how shaders work.
- LaTeX Cookbook
- Azure IoT Development Cookbook
- Practical UX Design
- 實戰低代碼
- Mastering JavaScript High Performance
- 運用后端技術處理業務邏輯(藍橋杯軟件大賽培訓教材-Java方向)
- 深入分布式緩存:從原理到實踐
- Go語言精進之路:從新手到高手的編程思想、方法和技巧(1)
- CoffeeScript Application Development Cookbook
- Julia for Data Science
- 快速入門與進階:Creo 4·0全實例精講
- BeagleBone Robotic Projects(Second Edition)
- Android Development Tools for Eclipse
- Visual Basic語言程序設計基礎(第3版)
- SQL Server實例教程(2008版)