MDLMesh.GenerateAmbientOcclusionVertexColors Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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