MDLMesh.GenerateAmbientOcclusionVertexColors Method

Definition

Overloads

GenerateAmbientOcclusionVertexColors(nint, Single, MDLObject[], String)
GenerateAmbientOcclusionVertexColors(Single, Single, MDLObject[], String)

Generates vertex color data that is used to simulate the occlusion of ambient light from recesses in the mesh.

GenerateAmbientOcclusionVertexColors(nint, Single, MDLObject[], String)

[Foundation.Export("generateAmbientOcclusionVertexColorsWithRaysPerSample:attenuationFactor:objectsToConsider:vertexAttributeNamed:")]
public virtual bool GenerateAmbientOcclusionVertexColors (nint raysPerSample, float attenuationFactor, ModelIO.MDLObject[] objectsToConsider, string vertexAttributeName);
abstract member GenerateAmbientOcclusionVertexColors : nint * single * ModelIO.MDLObject[] * string -> bool
override this.GenerateAmbientOcclusionVertexColors : nint * single * ModelIO.MDLObject[] * string -> bool

Parameters

raysPerSample
System.System.IntPtr System.nativeint
attenuationFactor
Single
objectsToConsider
MDLObject[]
vertexAttributeName
String

Returns

Attributes

Applies to

GenerateAmbientOcclusionVertexColors(Single, Single, MDLObject[], String)

Generates vertex color data that is used to simulate the occlusion of ambient light from recesses in the mesh.

[Foundation.Export("generateAmbientOcclusionVertexColorsWithQuality:attenuationFactor:objectsToConsider:vertexAttributeNamed:")]
public virtual bool GenerateAmbientOcclusionVertexColors (float bakeQuality, float attenuationFactor, ModelIO.MDLObject[] objectsToConsider, string vertexAttributeName);
abstract member GenerateAmbientOcclusionVertexColors : single * single * ModelIO.MDLObject[] * string -> bool
override this.GenerateAmbientOcclusionVertexColors : single * single * ModelIO.MDLObject[] * string -> bool

Parameters

bakeQuality
Single
attenuationFactor
Single
objectsToConsider
MDLObject[]
vertexAttributeName
String

Returns

Attributes

Applies to