Share via


MDLMesh.GenerateLightMapVertexColors(MDLLight[], MDLObject[], String) Method

Definition

Generates vertex color data that represent the computed result of shading from the specified lights, obstructed by the specified objects.

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

Parameters

lightsToConsider
MDLLight[]
objectsToConsider
MDLObject[]
vertexAttributeName
String

Returns

Attributes

Applies to