为 Blender 的区域光添加纹理

321 阅读2分钟

持续创作,加速成长!这是我参与「掘金日新计划 · 10 月更文挑战」的第 5 天,点击查看活动详情

效果图

  1. 无纹理区域光 AreaLightTex.png

  2. 白色字体透明背景的纹理 AreaLightTex.png

  3. 橙色背景不透明的纹理 AreaLightTex.png

  4. 蓝色背景不透明的纹理 AreaLightTex.png

正文

软件版本:Blender 3.3.0 【英文原文是基于 Blender 2.8.2】
渲染引擎:Cycles

为 Blender 的区域光添加纹理可以使它产生 更柔和更详细 的高光以及整体上更有机的照明效果。

Adding a texture to an area light can make it produce softer and more detailed highlights and an overall more organic lighting effect.

注意

由于 Blender 中的区域光并没有作为具有 UV 坐标的实际网格对象进行渲染,所以它的纹理坐标是参数化的(见下文)。

Note:

Since an Area light in Blender isn’t rendered as an actual mesh object with UV coordinates, it’s texture coordinates are parametric (see below).

为区域光添加纹理

  1. 在 区域光 属性中点击 使用节点 按钮(见 图A)来启动它的节点图并允许它纹理化。
  2. 着色器编辑器 视图中(同时选择了光),将纹理放到光的节点图中,并将其连接到光的 发射 节点的 颜色 输入。(见 图B)
  3. 创建一个新的 输入 > 几何节点 ,并连接它的 参数 输出到图像纹理的 矢量 输入。(见图B)

Adding a texture to an Area Light:

  1. In the Area Light properties click the Use Nodes button (see image A) to initiate its node graph and allow texturing it.
  2. In the Shader Editor view (with the light selected), drop your texture to the light’s node graph and connect it to the light’s Emission node’s Color input. (see image B)
  3. Create a new Input > Geometry node, and connect it’s Parametric output to the Image Texture’s Vector input. (see image B)
  • A. 如果没有纹理,区域光 会产生坚硬的平面高光:
  • A. Without a texture the Area light produces a hard flat highlight:

image.png

  • B. 随着 晕影暗角 纹理,区域光现在有一个更微妙的有机效果:
  • B. With the vignette texture, the Area light now has a more subtle organic effect:

在这种情况下,发射节点的强度增加了,以补偿纹理的低光输出。

The Emission node’s Strength was increased in this case to compensate for the lower light output with the texture.

image.png