Вузол «Атрибут» – Attribute Node

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

Вузол «Атрибут» – Attribute.

Вузол Attribute дозволяє вам отримувати атрибути, прикріплені до об’єкта чи сіті.

Уводи – Inputs

Цей вузол не має уводів.

Властивості – Properties

Ім’я – 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

Дає скалярне визначення щільності будь-якого диму всередині домену флюїду Fluid Domain.

Колір – Color

Дає колір диму всередині домену флюїду Fluid Domain. Виводи Color та Vector є однаковими. Вивід Factor є усередненням цих каналів.

Температура – Temperature

Дає скаляр, що визначає температуру об’єму. Значення у діапазоні 0 -1 розкладка для 0 - 1000 кельвінів. Це може використовуватися для рендерення фізично-базованого вогню за допомогою шейдера Blackbody або Principled Volume. Усі три виводи однакові.

Полум’я – Flame

Дає скалярне визначення щільності будь-якого вогню всередині домену флюїду Fluid Domain. Усі три виводи однакові.

Піна Океану – Ocean Foam

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

Дивись також

Про повний список варіантів дивіться тут – This Thread на 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 data-block 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.

Виводи – Outputs

Колір – Color

Колір RGB, інтерпольований з атрибута.

Вектор – Vector

Вектор XYZ, інтерпольований з атрибута.

Фактор – Factor

Скалярне значення, інтерпольоване з атрибута.

Alpha

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

Примітка

Currently, attributes are not supported in shaders used for the World or Light Objects.