ShaderGraph節點——Master

Master Nodes:主節點

PBR Master:用於基於物理的渲染的主節點。可以使用在金屬(Metallic )或高光(Specular)工作流模式下定義的工作流下拉參數。

默認情況下,Shader Graph期望您提供給輸入法線的值位於切線空間中。使用Transform節點將值轉換爲切線空間,或使用Material選項中的Fragment Normal space下拉菜單將預期的座標空間更改爲Object或World。

Name Direction Type Stage Binding Description
Position Input Vector 3 Vertex None Defines the absolute object space vertex position per vertex.
Albedo Input Vector 3 Fragment None Defines material's albedo value. Expected range 0 - 1.
Normal Input Vector 3 Fragment Tangent Space Normal Defines material's normal value. Expects normals in tangent space.
Emission Input Vector 3 Fragment None Defines material's emission color value. Expects positive values.
Metallic Input Vector 1 Fragment None Defines material's metallic value where 0 is non-metallic and 1 is metallic. Only available in Metallic Workflow mode.
Specular Input Vector 3 Fragment None Defines material's specular color value. Expected range 0 - 1. Only available in Specular Workflowmode.
Smoothness Input Vector 1 Fragment None Defines material's smoothness value. Expected range 0 - 1.
Occlusion Input Vector 1 Fragment None Defines material's ambient occlusion value. Expected range 0 - 1.
Alpha Input Vector 1 Fragment None Defines material's alpha value. Used for transparency and/or alpha clip. Expected range 0 - 1.
Alpha Clip Threshold Input Vector 1 Fragment None Fragments with an alpha below this value will be discarded. Requires a node connection. Expected range 0 - 1.

 

Name Type Options Description
Workflow Dropdown Metallic, Specular Defines workflow mode for the material.
Surface Dropdown Opaque, Transparent Defines if the material is transparent.
Blend Dropdown Alpha, Premultiply, Additive, Multiply Defines blend mode of a transparent material.
Fragment Normal Space Dropdown Tangent, Object, World Defines the coordinate space of the value supplied to the Normal slot.
Two Sided Toggle True, False If true, both front and back faces of the mesh are rendered.

Unlit Master:用於不受光照影響的材質的主節點。

Name Direction Type Stage Binding Description
Position Input Vector 3 Vertex None Defines the absolute object space vertex position per vertex
Color Input Vector 3 Fragment None Defines material's color value. Expected range 0 - 1.
Alpha Input Vector 1 Fragment None Defines material's alpha value. Used for transparency and/or alpha clip. Expected range 0 - 1.
Alpha Clip Threshold Input Vector 1 Fragment None Fragments with an alpha below this value will be discarded. Requires a node connection. Expected range 0 - 1.

 

Name Type Options Description
Surface Dropdown Opaque, Transparent Defines if the material is transparent
Blend Dropdown Alpha, Premultiply, Additive, Multiply Defines blend mode of a transparent material
Two Sided Toggle True, False If true both front and back faces of the mesh are rendered

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章