Attribute (属性)ノード

../../../_images/render_shader-nodes_input_attribute_node.png

Attribute ノード。

Attribute (属性)ノードによってオブジェクトやメッシュに付与された属性値を取得する事ができます。

入力

このノードに入力はありません。

プロパティ

Name (名称)

Name of the attribute.

Type

Specifies the type of the attribute.

Geometry

The attribute is associated with the geometry of the object, and its value varies from vertex to vertex, or within the volume of the object.

Most geometry attributes are directly accessible through the various input nodes, except for these:

Vertex Color Layers (頂点カラーレイヤー)

その名前で取得することができます。

Density (密度)

Gives a scalar defining the density of any smoke inside the Fluid Domain.

Color (色)

Gives the color of the smoke inside the Fluid Domain. The color and vector outputs are the same. The Factor output is an average of the channels.

Temperature

ボリュームの温度を定義するスカラ値を返します。0-1の範囲は0-1000ケルビンにマッピングされます。BlackbodyまたはPrincipled Volumeシェーダーでの物理ベースの炎のレンダリングに使用できます。3つの出力はすべて同じです。

Flame (炎)

Gives a scalar defining the density of any fire inside the Fluid Domain. All three outputs are the same.

Ocean Foam (オーシャンモディファイアの泡)

Gives a scalar defining where foam might appear when using an Ocean Modifier. This depends on the name you give this property.

参考

For a full list of options see This Thread on the Blender Stack Exchange.

Object

The attribute name specifies a custom property name, or an RNA path to a built-in property (like the single property driver variables).

The values of attributes of this type are defined once per object. The name or path is looked up first in the object data-block, followed by the mesh datablock if not found. Custom properties have priority over built-in ones.

The property value must be an integer, float, or a vector of 1 to 4 floats; properties of other types are ignored. If a suitable property is not found, all sockets of the node, including Alpha, output 0.

ちなみに

The color attribute will output the value of the Color field in the Viewport Display panel of the object, unless overridden by a custom property.

Instancer

Similar to Object, but the attribute is looked up in the instancer particle system settings, followed by the instancer object. If the current object is not instanced, or the property is not found, it falls back to the Object mode.

出力

Color (色)

指定した属性から補間される RGB 色情報が返されます。

Vector (ベクトル)

指定した属性から補間される XYZ の 3 次元ベクトルが返されます。

Factor (係数)

指定した属性から補間されるスカラ値が返されます。

Alpha

Alpha channel of the attribute, when available. If the attribute has no alpha channel, generally defaults to 1.