- Unity 2018 Shaders and Effects Cookbook
- John P. Doran Alan Zucconi
- 182字
- 2021-06-18 19:04:14
Getting ready
Let's see how this works in our current shader called StandardDiffuse by creating our own properties and learning more about the syntax involved. For this example, we will refit the shader previously created. Instead of using a texture, it will only use its color and some other properties that we will be able to change directly from the Inspector tab. Start by duplicating the StandardDiffuse shader. You can do this by selecting it in the Inspector tab and pressing Ctrl + D. This will create a copy called StandardDiffuse 1. Go ahead and rename it as StandardColor.
You can give a friendlier name to your shader in its first line. For instance, Shader "CookbookShaders/StandardDiffuse" tells Unity to call this shader StandardDiffuse and move it to a group called CookbookShaders. If you duplicate a shader using Ctrl + D, your new file will share the same name. To avoid confusion, make sure to change the first line of each new shader so that it uses a unique alias in this and future recipes.
- Instant Testing with CasperJS
- Learn to Create WordPress Themes by Building 5 Projects
- PHP基礎案例教程
- WSO2 Developer’s Guide
- 深入淺出DPDK
- Java軟件開發基礎
- Java系統化項目開發教程
- 鴻蒙OS應用編程實戰
- OpenStack Networking Essentials
- 零基礎學C語言(第4版)
- 基于GPU加速的計算機視覺編程:使用OpenCV和CUDA實時處理復雜圖像數據
- Three.js權威指南:在網頁上創建3D圖形和動畫的方法與實踐(原書第4版)
- Python第三方庫開發應用實戰
- 體驗之道:從需求到實踐的用戶體驗實戰
- Design Patterns and Best Practices in Java