RectAreaLight

平面光光源 平面光光源从一个矩形平面上均匀地发射光线。这种光源可以用来模拟像明亮的窗户或者条状灯光光源。

注意事项:

不支持阴影。 只支持 MeshStandardMaterial 和 MeshPhysicalMaterial 两种材质。 你必须在你的场景中加入 RectAreaLightUniformsLib,并调用 init()。

基础用法

从矩形平面上均匀地发射光线

不能产生阴影

只支特MeshStandardMaterial和MeshPhysicalMaterial两种材质。

必须在场景中加入RectAreaLightUniformsLib,并调用init()。

API

Attributes

NameDescriptionTypeDefaultRequired
color构造函数参数ColorRepresentationundefinedNo
intensity构造函数参数NumberundefinedNo
width构造函数参数NumberundefinedNo
height构造函数参数NumberundefinedNo
uniforms是否init RectAreaLightUniformsLibBooleanfalseNo
options实例属性RectAreaLightOptions{}No

Events

NameDescriptionType
load实例创建后触发方法Function

Provide

KeyDescriptionType
rectAreaLightInjectionKeyRectAreaLight实例RectAreaLight

Slots

NameDescription
default默认插槽

源代码

文档