open all | close all

Ray

Preview 预览Basic 基础Outputs 产出Context 背景

Ray

The Ray Node can be queried during rendering to ascertain which type of ray is currently being evaluated. A material can react directly to this information to, as in this example, make a sphere’s material glow in the reflection, whereas the same material has a normal shaded appearance in the areas viewed directly by the camera. 在呈现过程中可以查询 Ray Node,以确定当前正在计算哪种类型的射线。一种材质可以直接对这种信息做出反应,就像这个例子,使一个球体的材质在反射中发光,而同样的材质在相机直接观察的区域有一个正常的阴影外观

This Node can be used to query the ray type at the current sample position. You can ascertain if the ray computes a shadow, is used to create a reflection or even if it is used for Global Illumination. The corresponding Boole signals can, for example, be used to modify specific properties of a given material during the various rendering phases. This makes entirely new possibilities available for creating material effects, which otherwise can’t be achieved.

此节点可用于查询当前示例位置的射线类型。你可以确定光线是否计算阴影,是否用于创建反射,甚至是否用于全局光源。例如,在不同的渲染阶段,相应的 Boole 信号可以用来修改给定材质的特定属性。这为创造材质效果提供了全新的可能性,否则就无法实现。