Condividi tramite


MDLMesh.GenerateAmbientOcclusionTexture Metodo

Definizione

Overload

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

Genera una trama usata per simulare l'occlusione della luce ambientale da recessi nella mesh.

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

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

Genera una trama usata per simulare l'occlusione della luce ambientale da recessi nella 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

Parametri

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

Restituisce

Attributi

Si applica a

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

Parametri

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

Restituisce

Attributi

Si applica a