太阳光束节点

太阳光束节点。

The Sun Beams node provides a computationally cheap way of creating the name giving effect based on the image brightness alone.

太阳光束是一种 2D 效果,用于模拟强光在介质中散射的效果 (Crepuscular Rays)。此现象可以由渲染器创建,但全体积照明是一种相当困难的方法,需要大量渲染时间。

输入

图像

标准颜色输入。

属性

宽度,高度

将图像尺寸作为光线发射源大小的系数。

射线长度

将图像尺寸作为光线长度的系数。

输出

图像

标准颜色输出。

例子

通常,首先要定义光线投射的范围。使其在真实世界当中,物体表面任何漫反射光线不会继续向外分散,因此应在输入数据中将其排除。实现这个效果可用的方法是:

  • 将作为光源的图像完全分离。

  • 亮度/对比度 只在最亮区域微调并遗弃。

  • 暗色调和中间调颜色更加柔和。

  • 无限远处控制进行遮罩隐藏。

After generating the sun beams from such a light source image they can then be overlayed on the original image. Usually, a simple "Add" Mix node is sufficient, and physically correct because the scattered light adds to the final result.

../../../_images/compositing_types_filter_sun-beams_example.jpg