Compartir a través de


MDLMesh.GenerateAmbientOcclusionTexture Método

Definición

Sobrecargas

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

Genera una textura que se usa para simular la oclusión de la luz ambiente a partir de los huecos de la malla.

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

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

Genera una textura que se usa para simular la oclusión de la luz ambiente a partir de los huecos de la malla.

[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

Parámetros

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

Devoluciones

Atributos

Se aplica 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

Parámetros

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

Devoluciones

Atributos

Se aplica a