- 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.
- C# Programming Cookbook
- Neo4j Essentials
- Instant 960 Grid System
- Learning Vaadin 7(Second Edition)
- Scratch趣味編程:陪孩子像搭積木一樣學編程
- OpenCV 3 Blueprints
- Java EE 7 with GlassFish 4 Application Server
- Ext JS 4 Plugin and Extension Development
- Mastering Embedded Linux Programming
- Android編程權威指南(第4版)
- 實戰Python網絡爬蟲
- Learning WordPress REST API
- Web開發新體驗
- R語言:邁向大數據之路
- R語言與網站分析