- 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.
- GitLab Cookbook
- 數(shù)字媒體應(yīng)用教程
- JavaScript+jQuery開發(fā)實(shí)戰(zhàn)
- 高級C/C++編譯技術(shù)(典藏版)
- The Data Visualization Workshop
- Spring Boot進(jìn)階:原理、實(shí)戰(zhàn)與面試題分析
- Getting Started with Laravel 4
- Learning OpenStack Networking(Neutron)
- Mastering Android Game Development
- Learning Apache Cassandra
- Unity 2018 Shaders and Effects Cookbook
- 基于SpringBoot實(shí)現(xiàn):Java分布式中間件開發(fā)入門與實(shí)戰(zhàn)
- C語言程序設(shè)計(jì)
- Android智能手機(jī)APP界面設(shè)計(jì)實(shí)戰(zhàn)教程
- Android嵌入式系統(tǒng)程序開發(fā)(基于Cortex-A8)