Documentation / Node reference / code nodes

code/IntersectionAttribute

Outputs an attribute at an intersection.

Attributes

Reads an attribute where an intersection hit the object: the hit face's primitive attribute, or a point attribute blended between the face's corners. A whole number point attribute reads the nearest corner. The object must be made of triangles. Without a hit, it reads zero.

Parameters

Name Type What it does
entity UInt8 PRIMITIVE · POINT Read a primitive or a point attribute.
name AttributeName Attribute to read.
type UInt8 FLOAT · INDEX · U32 · VECTOR2 · VECTOR3 · VECTOR4 · VECTOR2_64 · VECTOR3_64 · FLOAT64 · VECTOR2_U32 · VECTOR3_U32 · VECTOR4_U32 Type of the attribute.

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.