マテリアル

Material class

Material はジオメトリの視覚的外観に必要なパラメータを定義します。Aspose.3D は LambertMaterial、PhongMaterial、ShaderMaterial のシェーディングモデルを提供します @hideconstructor

プロパティ

名前説明
MAP_SPECULARsetTexture(java.lang.String, com.aspose.threed.TextureBase) で使用され、スペキュラテクスチャマッピングを割り当てます。
MAP_DIFFUSEsetTexture(java.lang.String, com.aspose.threed.TextureBase) で使用され、ディフューズテクスチャマッピングを割り当てます。
MAP_EMISSIVEsetTexture(java.lang.String, com.aspose.threed.TextureBase) で使用され、エミッシブテクスチャマッピングを割り当てます。
MAP_AMBIENTsetTexture(java.lang.String, com.aspose.threed.TextureBase) で使用され、アンビエントテクスチャマッピングを割り当てます。
MAP_NORMALsetTexture(java.lang.String, com.aspose.threed.TextureBase) で使用され、ノーマルテクスチャマッピングを割り当てます。

メソッド

getName

名前説明
getName()名前を取得または設定します。名前。

Result:


setName

名前説明
setName(value)名前を取得または設定します。名前。

Result:


getProperties

名前説明
getProperties()すべてのプロパティのコレクションを取得します。

Result:


getTexture

名前説明
getTexture(slotName)指定されたスロットからテクスチャを取得します。スロットはマテリアルのプロパティ名またはシェーダーのパラメータ名にすることができます。

Parameters:

名前説明
slotName文字列スロット名。

Result: TextureBase


setTexture

名前説明
setTexture(slotName, texture)テクスチャを指定されたスロットに設定します。

Parameters:

名前説明
slotName文字列スロット名。
textureTextureBaseテクスチャ。

Result: TextureBase


toString

名前説明
toString()オブジェクトを文字列にフォーマットします

Result: 文字列


removeProperty

名前説明
removeProperty(property)動的プロパティを削除します。

Parameters:

名前説明
propertyProperty削除するプロパティはどれですか

Result: boolean


removeProperty

名前説明
removeProperty(property)名前で識別された指定されたプロパティを削除します。

Parameters:

名前説明
propert文字列null

Result: boolean


getProperty

名前説明
getProperty(property)指定されたプロパティの値を取得します

Parameters:

名前説明
property文字列プロパティ名

Result: オブジェクト


setProperty

名前説明
setProperty(property, value)指定されたプロパティの値を設定します

Parameters:

名前説明
property文字列プロパティ名
オブジェクトプロパティの値

Result: オブジェクト


findProperty

名前説明
findProperty(propertyName)プロパティを検索します。動的プロパティ(CreateDynamicProperty/SetProperty によって作成)またはネイティブプロパティ(名前で識別)になる可能性があります

Parameters:

名前説明
propertyName文字列プロパティ名。

Result: Property


iterator

名前説明
iterator()内部使用のために予約されています。

Result: Property