Amazon VERSION 2.0V1 Uživatelská příručka Strana 132

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 264
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 131
132
Shader Inputs
Each connectable input parameter for a shader can declare what tag values it requires for a connection to be valid.
The user interface makes use of these declarations to only allow the user to make valid connections.
Tag values for an input input parameter are declared in .args files with the following syntax:
<args format="1.0">
<param name="diffStr" >
<tags>
<tag value="(color and diffuse and color4) or test"/>
</tags>
</param>
</args>
The following is the equivalent hint dictionary syntax:
{"PrmanShadingNode.parameters.diffStr": {
"widget": "null",
"name": "diffStr",
"transientHints": {"helpCaption": true},
"tags": ["color and diffuse"],
"helpCaption": "shader: MyShaderName - diffStr",
"coshaderPort": "True"
}
}
Logical Inputs
Boolean logic is available to make more advanced rules specifying which connections are valid for any input
parameter. The available operators are and, or, not, ( ', ' )
AND
<param name="diffStr" >
<tags>
<tag value="color and color4 and diffuse"/>
</tags>
</param>
18 TYPED CONNECTION CHECKING | SHADER INPUTS
Zobrazit stránku 131
1 2 ... 127 128 129 130 131 132 133 134 135 136 137 ... 263 264

Komentáře k této Příručce

Žádné komentáře