Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unreal Engine 4 Game Development Essentials

You're reading from   Unreal Engine 4 Game Development Essentials Master the basics of Unreal Engine 4 to build stunning video games

Arrow left icon
Product type Paperback
Published in Feb 2016
Publisher
ISBN-13 9781784391966
Length 266 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (2):
Arrow left icon
Satheesh P.V Satheesh P.V
Author Profile Icon Satheesh P.V
Satheesh P.V
Satheesh PV Satheesh PV
Author Profile Icon Satheesh PV
Satheesh PV
Arrow right icon
View More author details
Toc

Common material expressions

There are some common Material nodes that we use most of the time when we create a material. To create a node you need to right-click on the graph canvas and search for it, or you can use the Palette window to drag and drop. Some nodes also have shortcut keys assigned to them.

Let's take a look at these common nodes.

Constant

Constant expression outputs a single float value and can be connected to almost any input. You can convert a constant expression to a parameter and make real-time changes to the Material instance. You can also access a parameter through Blueprint or C++ and see the changes in the game.

  • Shortcut key: Hold 1 and click on the graph area
  • Parameter shortcut key: Hold S and click on the graph area
  • Example usage: Brighten or darken a texture

Tip

Constant parameter is called a scalar parameter

Constant

You can see a constant expression (0.2) being used to darken a texture.

Constant2Vector

The Constant2Vector expression outputs two float values, which is a two...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime