Raycast(レイキャスト)ノード¶
The Raycast node traces a ray in the Scene and reports information from the first surface it hits (if any).
This is an expensive node and can significantly slow down renders. You can bake the results to improve render times.
Cycles Only The Raycast node interprets all scene geometry as opaque. It doesn't take transparency into account to discard hits.
EEVEE Only The Raycast node has the usual Screen-Space Effects limitations.
入力¶
- Position(位置)
The starting position of the ray. When not connected, the surface position is used.
- Direction(方向)
The direction the ray goes towards. When not connected, the surface normal is used.
- Length(長さ)
The maximum distance the ray can travel before being considered "no hit".
Properties(プロパティ)¶
- Only Local
Only report hits against the object itself, not other objects.
出力¶
- Is Hit(ヒットフラグ)
One if a hit was detected, zero otherwise.
- Self Hit
One if the detected hit was against the object itself, zero otherwise.
- Hit Distance(ヒット距離)
The distance the ray has traveled before the hit. If no hit is found, the ray Length is returned.
- Hit Position(ヒット位置)
The hit location. If no hit is found, a zero vector is returned.
- Hit Normal(ヒット法線)
The geometry Normal of the hit surface. If no hit is found, a zero vector is returned.
Attributes(属性)¶
Cycles のみ
Geometry attributes at the intersection point can be accessed. Add attributes in the Sample Attributes panel in the node editor sidebar, and new attribute sockets appear on the node. Fill in the attribute name and link the new output socket to use the value. When no intersection is found, the attribute output is zero.
EEVEE does not support attribute access, and outputs attributes as zero.