MDLMesh.GenerateLightMapVertexColors(MDLLight[], MDLObject[], String) 方法

定义

生成顶点颜色数据,这些数据表示由指定对象遮挡的指定灯光的着色计算结果。

[Foundation.Export("generateLightMapVertexColorsWithLightsToConsider:objectsToConsider:vertexAttributeNamed:")]
public virtual bool GenerateLightMapVertexColors (ModelIO.MDLLight[] lightsToConsider, ModelIO.MDLObject[] objectsToConsider, string vertexAttributeName);
abstract member GenerateLightMapVertexColors : ModelIO.MDLLight[] * ModelIO.MDLObject[] * string -> bool
override this.GenerateLightMapVertexColors : ModelIO.MDLLight[] * ModelIO.MDLObject[] * string -> bool

参数

lightsToConsider
MDLLight[]
objectsToConsider
MDLObject[]
vertexAttributeName
String

返回

属性

适用于