Compartilhar via


MDLMesh.GenerateAmbientOcclusionTexture Método

Definição

Sobrecargas

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

Gera uma textura usada para simular a oclusão da luz ambiente de recessões na malha.

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

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

Gera uma textura usada para simular a oclusão da luz ambiente de recessões na malha.

[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

Retornos

Atributos

Aplica-se 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

Retornos

Atributos

Aplica-se a