Boat Attack使用了Universal RP的许多新图形功能,可以用于探索 Universal RP 的使用方式和技巧。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

1.6 KiB

Creating a new Shader Graph Asset

After you configure an SRP, you can create a new Shader Graph Asset. Right-click the Project window, locate Create > Shader in the context menu, then select your desired type of Shader Graph.

Unity currently supports the following graph types:

  • PBR Graph
  • Sub Graph
  • Unlit Graph

If you're using HDRP in your project, the following HDRP-specific graph types are also available:

  • Decal Graph
  • Fabric Graph
  • Hair Graph
  • Lit Graph
  • StackLit Graph
  • Unlit Graph

Double-click your newly created Shader Graph Asset to open it in the Shader Graph window.

Shader Graph window

The Shader Graph window consists of the Master Node, the Preview Window, and the Blackboard.

Master node

The final connection that determines your shader output. See Master Node for more information.

Preview window

An area to preview the current shader output. Here, you can rotate the object, and zoom in and out. You can also change the basic mesh on which the shader is previewed. See Master Preview for more information.

img

Blackboard

An area that contains all of the shader's properties in a single, collected view. Use the Blackboard to add, remove, rename, and reorder properties. See Blackboard for more information.

After you've set up a project, and become familiar with the Shader Graph window, see My first Shader Graph for more information on how to get started.