3 - Editing Materials

Learn how to edit materials in this section.


At this point, you should have created a new material and opened the Material Editor.

You can define a material's color, shininess, transparency, and much more in the Material Editor . You're now ready to edit the 'Rock' Material you created.

Editing your 'Rock' Material

  1. Select the Main Material Node in the center of the Material Graph. The Material Editor will highlight the node for you when you select it.


    It is the only node in the graph (named after your material).

  2. Inside the Details panel, change the Shading Model from Default Lit to Subsurface.


  3. The Subsurface Shading Model enables two more pins in the Main Material Node: Opacity and Subsurface Color.


  4. Now is the time to get your textures into the Graph. Hold the ' T ' key and left-click inside the Editor's Graph area. A Texture Sample Node should appear inside the graph.


  5. You'll want at least 2 textures. Repeat Step 4 until your graph looks like the image below.


  6. Select one of the Texture Sample Nodes and locate the Details Panel under the Material Expression Texture Base category.


    Under the texture property, left-click the pull down menu labeled 'None' and select the color texture named T_Rock_04_D.

    You can also use the search field to locate the texture asset by entering 'T_Rock_04_D' in the search field.

  7. Repeat Step 6 for the other Texture Sample Node, making sure to select the normal map texture named T_Rock_04_n.


    The Material Graph should resemble the image pictured above.

  8. Connect the T_Rock_04_D Texture Sample's Color pin (white) to the Rock Material's Base Color pin.


    The newly connected white pin contains the texture's color channels.

  9. Connect the T_Rock_04_n Texture Sample's Normal pin (white) to the Rock Material's Normal pin.


    The newly connected white pin contains information for the texture's normal map.

  10. The Preview should look similar to the image pictured below.


  11. Hold the ' 1 ' key and left-click in the Graph Panel to create three (3) Constant nodes.


    The Constant Node is a modifiable scalar float variable.

  12. Hold the ' 3 ' key and left-click in the Graph Panel to create one (1) Constant3Vector.


    The Constant3Vector node is a modifiable vector corresponding to color without an alpha channel.

    Read our Constant Expression documentation if you want to learn more about working with constant expressions.

  13. Your nodes should be arranged so that connections can be easily made without wires crossing or sliding beneath each other.


  14. Connect all of the Constant and Constant3Vector nodes to corresponding pins in the 'Rock' Material Main Node.


  15. Change the values of each Constant and Constant3Vector by updating their Value parameter in the Details panel.

    • Specular Value = 0.0

    • Roughness Value = 0.8

    • Opacity Value = 0.95

    • Subsurface Color = Red(1,0,0)


  16. The Preview should look similar to the image pictured below.


    Make sure to save your material before exiting the Material Editor.

You're almost done! You've just used the Material Editor to edit your 'Rock' Material.

A list of all Material Editor Keyboard Shortcuts can be found by going to Edit Menu->Editor Preferences->Keyboard Shortcuts->"Material Editor" and "Material Editor-Spawn Nodes" categories.

Select Skin

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback