- Unreal Engine 4 Shaders and Effects Cookbook
- Brais Brenlla Ramos John P. Doran
- 340字
- 2021-06-24 14:12:04
How it works...
We've used the present recipe to learn about the material editor and we've also created our first material. Knowing what each section does within the editor will help a lot in the immediate future, as what we've just done is but a prelude to our real target—creating a physically based material. Now we are in a much better position to tackle that goal, so let's look at it in the next recipe!
Before moving on though, let's check the nodes that we have used to create this simple material. From an artist's point of view, the names that the engine has given to something like a color value or a grayscale value can seem a bit confusing. It might be difficult to establish a connection between the name of the Constant3Vector node and our idea of a color. But there is a reason for all of this!
The idea behind that naming convention is that these nodes can be used beyond the color values we have just assigned them. At the end of the day, a simple constant can be used in many different scenarios—such as depicting a grayscale value, using it as a brightness multiplier, or as a parameter inside a material function. Don't worry if you haven't seen these other uses yet, we will—the point is, the names that these nodes were given tell us that there are more uses beyond the ones we've seen.
With that in mind, it might be better to think of those elements we've been using in more mathematical terms. For instance, think of a color as an Red Green Blue (RGB) value, which is what we are defining with that previous Constant3Vector node. If you want to use an RGB value alongside an alpha one, why not use the Constant4Vector, which allows for a fourth input? Even though we are at a very early stage, it is always good to familiarize ourselves with the different expressions the engine uses.
- 自制編譯器
- PHP 7底層設計與源碼實現
- Software Testing using Visual Studio 2012
- 基于差分進化的優化方法及應用
- Flash CS6中文版應用教程(第三版)
- Visual Basic學習手冊
- 從零開始:UI圖標設計與制作(第3版)
- Learning iOS Security
- jQuery從入門到精通(微課精編版)
- Python全棧開發:基礎入門
- 3D Printing Designs:The Sun Puzzle
- Learning Shiny
- Beginning C# 7 Hands-On:The Core Language
- 絕密原型檔案:看看專業產品經理的原型是什么樣
- PHP高性能開發:基礎、框架與項目實戰