MDLMesh.GenerateAmbientOcclusionTexture Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
GenerateAmbientOcclusionTexture(Single, Single, MDLObject[], String, String) |
Создает текстуру, которая используется для имитации окклюзии внешнего света из углублений в сетке. |
GenerateAmbientOcclusionTexture(Vector2i, nint, Single, MDLObject[], String, String) |
GenerateAmbientOcclusionTexture(Single, Single, MDLObject[], String, String)
Создает текстуру, которая используется для имитации окклюзии внешнего света из углублений в сетке.
[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
Параметры
- bakeQuality
- Single
- attenuationFactor
- Single
- objectsToConsider
- MDLObject[]
- vertexAttributeName
- String
- materialPropertyName
- String
Возвращаемое значение
- Атрибуты
Применяется к
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
Параметры
- textureSize
- Vector2i
- raysPerSample
- System.System.IntPtr System.nativeint
- attenuationFactor
- Single
- objectsToConsider
- MDLObject[]
- vertexAttributeName
- String
- materialPropertyName
- String
Возвращаемое значение
- Атрибуты