Edytuj

Udostępnij za pośrednictwem


MDLMesh.GenerateAmbientOcclusionTexture Method

Definition

Overloads

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

Generates a texture that is used to simulate the occlusion of ambient light from recesses in the mesh.

GenerateAmbientOcclusionTexture(Vector2i, nint, Single, MDLObject[], String, String)

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

Generates a texture that is used to simulate the occlusion of ambient light from recesses in the mesh.

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

Parameters

bakeQuality
Single
attenuationFactor
Single
objectsToConsider
MDLObject[]
vertexAttributeName
String
materialPropertyName
String

Returns

Attributes

Applies to

GenerateAmbientOcclusionTexture(Vector2i, nint, Single, MDLObject[], String, String)

[Foundation.Export("generateAmbientOcclusionTextureWithSize:raysPerSample:attenuationFactor:objectsToConsider:vertexAttributeNamed:materialPropertyNamed:")]
public virtual bool GenerateAmbientOcclusionTexture (OpenTK.Vector2i textureSize, nint raysPerSample, float attenuationFactor, ModelIO.MDLObject[] objectsToConsider, string vertexAttributeName, string materialPropertyName);
abstract member GenerateAmbientOcclusionTexture : OpenTK.Vector2i * nint * single * ModelIO.MDLObject[] * string * string -> bool
override this.GenerateAmbientOcclusionTexture : OpenTK.Vector2i * nint * single * ModelIO.MDLObject[] * string * string -> bool

Parameters

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

Returns

Attributes

Applies to