MeshLambertMaterial

Lambert网格材质

一种非光泽表面的材质,没有镜面高光。

该材质使用基于非物理的Lambertian模型来计算反射率。 这可以很好地模拟一些表面(例如未经处理的木材或石材),但不能模拟具有镜面高光的光泽表面(例如涂漆木材)。 MeshLambertMaterial uses per-fragment shading。

由于反射率和光照模型的简单性,MeshPhongMaterial,MeshStandardMaterial或者MeshPhysicalMaterial 上使用这种材质时会以一些图形精度为代价,得到更高的性能。

基础用法

只有感光材质才对光照有反应 可以很好地模拟某些表面(例如未经处理的木材或石材),但不能模拟具有镜面高光的光泽表面(例如涂漆木材) 光照强度,颜色等都会与材质发生反应

API

Attributes

NameDescriptionTypeDefaultRequired
params构造函数参数MeshLambertMaterialParametersundefinedNo
options实例属性MeshLambertMaterialOptions{}No

Events

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

Provide

KeyDescriptionType
materialInjectKey材质实例MeshLambertMaterial

Slots

NameDescription
default默认插槽

源代码

文档