PbrSpecularMaterial

Inheritance: java.lang.Object, com.aspose.threed.A3DObject, com.aspose.threed.Material

public class PbrSpecularMaterial extends Material

拡散カラー/スペキュラ/光沢に基づく物理ベースレンダリング用マテリアル。

コンストラクタ

コンストラクタ説明
PbrSpecularMaterial()PbrSpecularMaterial のコンストラクタ

フィールド

フィールド説明
MAP_AMBIENTsetTexture で環境光テクスチャマッピングを割り当てるために使用されます。
MAP_DIFFUSEsetTexture で拡散テクスチャマッピングを割り当てるために使用されます。
MAP_EMISSIVEsetTexture で放射テクスチャマッピングを割り当てるために使用されます。
MAP_NORMALsetTexture で法線テクスチャマッピングを割り当てるために使用されます。
MAP_SPECULARsetTexture で鏡面テクスチャマッピングを割り当てるために使用されます。
MAP_SPECULAR_GLOSSINESS鏡面光沢用のテクスチャマップ

メソッド

メソッド説明
equals(Object arg0)
findProperty(String propertyName)プロパティを検索します。
getClass()
getDiffuse()マテリアルの拡散色を取得します。デフォルト値は (1, 1, 1) です。
getDiffuseTexture()拡散用テクスチャを取得します
getEmissiveColor()放射色を取得します。デフォルト値は (0, 0, 0) です。
getEmissiveTexture()放射テクスチャを取得します
getGlossinessFactor()マテリアルの光沢(滑らかさ)を取得します。1 は完全に滑らか、0 は完全に粗いことを意味し、デフォルト値は 1、範囲は [0, 1] です。
getName()名前を取得します。
getNormalTexture()法線マッピングのテクスチャを取得します
getProperties()すべてのプロパティのコレクションを取得します。
getProperty(String property)指定されたプロパティの値を取得します
getSpecular()マテリアルの鏡面色を取得します。デフォルト値は (1, 1, 1) です。
getSpecularGlossinessTexture()鏡面色用のテクスチャを取得します。RGB チャネルは鏡面色を、A チャネルは光沢を格納します。
getTexture(String slotName)指定されたスロットからテクスチャを取得します。これはマテリアルのプロパティ名またはシェーダーのパラメータ名で指定できます。
getTransparency()透過係数を取得します。
hashCode()
iterator()内部テクスチャスロットを列挙するための列挙子を取得します。
notify()
notifyAll()
removeProperty(Property property)動的プロパティを削除します。
removeProperty(String property)名前で識別される指定されたプロパティを削除します
setDiffuse(Vector3 value)マテリアルの拡散色を設定します。デフォルト値は (1, 1, 1) です。
setDiffuseTexture(TextureBase value)拡散用テクスチャを設定します
setEmissiveColor(Vector3 value)放射色を設定します。デフォルト値は (0, 0, 0) です。
setEmissiveTexture(TextureBase value)エミッシブ用のテクスチャを設定します
setGlossinessFactor(double value)マテリアルの光沢(滑らかさ)を設定します。1 は完全に滑らか、0 は完全に粗いことを意味し、デフォルト値は 1、範囲は [0, 1] です
setName(String value)名前を設定します。
setNormalTexture(TextureBase value)法線マッピングのテクスチャを設定します
setProperty(String property, Object value)指定されたプロパティの値を設定します
setSpecular(Vector3 value)マテリアルの鏡面色を設定します。デフォルト値は (1, 1, 1) です。
setSpecularGlossinessTexture(TextureBase value)鏡面色用のテクスチャを設定します。RGB チャンネルが鏡面色を、A チャンネルが光沢を格納します。
setTexture(String slotName, TextureBase texture)テクスチャを指定されたスロットに設定します。
setTransparency(double value)透過係数を設定します。
toString()オブジェクトを文字列にフォーマットします
wait()
wait(long arg0)
wait(long arg0, int arg1)

PbrSpecularMaterial()

public PbrSpecularMaterial()

PbrSpecularMaterial のコンストラクタ

MAP_AMBIENT

public static final String MAP_AMBIENT

setTexture で環境光テクスチャマッピングを割り当てるために使用されます。

MAP_DIFFUSE

public static final String MAP_DIFFUSE

setTexture で拡散テクスチャマッピングを割り当てるために使用されます。

MAP_EMISSIVE

public static final String MAP_EMISSIVE

setTexture で放射テクスチャマッピングを割り当てるために使用されます。

MAP_NORMAL

public static final String MAP_NORMAL

setTexture で法線テクスチャマッピングを割り当てるために使用されます。

MAP_SPECULAR

public static final String MAP_SPECULAR

setTexture で鏡面テクスチャマッピングを割り当てるために使用されます。

MAP_SPECULAR_GLOSSINESS

public static final String MAP_SPECULAR_GLOSSINESS

鏡面光沢用のテクスチャマップ

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

パラメーター説明
arg0java.lang.Object

Returns: boolean

findProperty(String propertyName)

public Property findProperty(String propertyName)

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

Parameters:

パラメーター説明
propertyNamejava.lang.Stringプロパティ名。

Returns: Property - The property.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDiffuse()

public Vector3 getDiffuse()

マテリアルの拡散色を取得します。デフォルト値は (1, 1, 1) です。

Returns: Vector3 - the diffuse color of the material, default value is (1, 1, 1)

getDiffuseTexture()

public TextureBase getDiffuseTexture()

拡散用テクスチャを取得します

Returns: TextureBase - the texture for diffuse

getEmissiveColor()

public Vector3 getEmissiveColor()

放射色を取得します。デフォルト値は (0, 0, 0) です。

Returns: Vector3 - the emissive color, default value is (0, 0, 0)

getEmissiveTexture()

public TextureBase getEmissiveTexture()

放射テクスチャを取得します

Returns: TextureBase - the texture for emissive

getGlossinessFactor()

public double getGlossinessFactor()

マテリアルの光沢(滑らかさ)を取得します。1 は完全に滑らか、0 は完全に粗いことを意味し、デフォルト値は 1、範囲は [0, 1] です。

Returns: double - マテリアルの光沢(滑らかさ)。1 は完全に滑らか、0 は完全に粗いことを意味し、デフォルト値は 1、範囲は [0, 1] です

getName()

public String getName()

名前を取得します。

Returns: java.lang.String - 名前です。

getNormalTexture()

public TextureBase getNormalTexture()

法線マッピングのテクスチャを取得します

Returns: TextureBase - the texture of normal mapping

getProperties()

public PropertyCollection getProperties()

すべてのプロパティのコレクションを取得します。

Returns: PropertyCollection - the collection of all properties.

getProperty(String property)

public Object getProperty(String property)

指定されたプロパティの値を取得します

Parameters:

パラメーター説明
プロパティjava.lang.Stringプロパティ名

Returns: java.lang.Object - 見つかったプロパティの値

getSpecular()

public Vector3 getSpecular()

マテリアルの鏡面色を取得します。デフォルト値は (1, 1, 1) です。

Returns: Vector3 - the specular color of the material, default value is (1, 1, 1).

getSpecularGlossinessTexture()

public TextureBase getSpecularGlossinessTexture()

鏡面色用のテクスチャを取得します。RGB チャネルは鏡面色を、A チャネルは光沢を格納します。

Returns: TextureBase - the texture for specular color, channel RGB stores the specular color and channel A stores the glossiness.

getTexture(String slotName)

public TextureBase getTexture(String slotName)

指定されたスロットからテクスチャを取得します。これはマテリアルのプロパティ名またはシェーダーのパラメータ名で指定できます。

Parameters:

パラメーター説明
slotNamejava.lang.Stringスロット名。

Returns: TextureBase - The texture. Example:

var mat = new LambertMaterial();
     var tex = new Texture();
     tex.setFileName("diffuse.png");
     mat.setTexture(Material.MAP_DIFFUSE, tex);
     tex = (Texture)mat.getTexture(Material.MAP_DIFFUSE);

getTransparency()

public double getTransparency()

透明度係数を取得します。係数は 0(0%、完全に不透明)から 1(100%、完全に透明)の範囲である必要があります。無効な係数値はクランプされます。

Returns: double - 透明度係数。係数は 0(0%、完全に不透明)から 1(100%、完全に透明)の範囲である必要があります。無効な係数値はクランプされます。

hashCode()

public native int hashCode()

Returns: int

iterator()

public Iterator<TextureSlot> iterator()

内部テクスチャスロットを列挙するための列挙子を取得します。

Returns: java.util.Iterator<com.aspose.threed.TextureSlot>

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removeProperty(Property property)

public boolean removeProperty(Property property)

動的プロパティを削除します。

Parameters:

パラメーター説明
propertyProperty削除するプロパティ

Returns: boolean - プロパティが正常に削除された場合は true

removeProperty(String property)

public boolean removeProperty(String property)

名前で識別される指定されたプロパティを削除します

Parameters:

パラメーター説明
プロパティjava.lang.String削除するプロパティ

Returns: boolean - プロパティが正常に削除された場合は true

setDiffuse(Vector3 value)

public void setDiffuse(Vector3 value)

マテリアルの拡散色を設定します。デフォルト値は (1, 1, 1) です。

Parameters:

パラメーター説明
valueVector3新しい値

setDiffuseTexture(TextureBase value)

public void setDiffuseTexture(TextureBase value)

拡散用テクスチャを設定します

Parameters:

パラメーター説明
valueTextureBase新しい値

setEmissiveColor(Vector3 value)

public void setEmissiveColor(Vector3 value)

放射色を設定します。デフォルト値は (0, 0, 0) です。

Parameters:

パラメーター説明
valueVector3新しい値

setEmissiveTexture(TextureBase value)

public void setEmissiveTexture(TextureBase value)

エミッシブ用のテクスチャを設定します

Parameters:

パラメーター説明
valueTextureBase新しい値

setGlossinessFactor(double value)

public void setGlossinessFactor(double value)

マテリアルの光沢(滑らかさ)を設定します。1 は完全に滑らか、0 は完全に粗いことを意味し、デフォルト値は 1、範囲は [0, 1] です

Parameters:

パラメーター説明
double新しい値

setName(String value)

public void setName(String value)

名前を設定します。

Parameters:

パラメーター説明
java.lang.String新しい値

setNormalTexture(TextureBase value)

public void setNormalTexture(TextureBase value)

法線マッピングのテクスチャを設定します

Parameters:

パラメーター説明
valueTextureBase新しい値

setProperty(String property, Object value)

public void setProperty(String property, Object value)

指定されたプロパティの値を設定します

Parameters:

パラメーター説明
プロパティjava.lang.Stringプロパティ名
java.lang.Objectプロパティの値

setSpecular(Vector3 value)

public void setSpecular(Vector3 value)

マテリアルの鏡面色を設定します。デフォルト値は (1, 1, 1) です。

Parameters:

パラメーター説明
valueVector3新しい値

setSpecularGlossinessTexture(TextureBase value)

public void setSpecularGlossinessTexture(TextureBase value)

鏡面色用のテクスチャを設定します。RGB チャンネルが鏡面色を、A チャンネルが光沢を格納します。

Parameters:

パラメーター説明
valueTextureBase新しい値

setTexture(String slotName, TextureBase texture)

public void setTexture(String slotName, TextureBase texture)

テクスチャを指定されたスロットに設定します。

Parameters:

パラメーター説明
slotNamejava.lang.Stringスロット名。
textureTextureBase
var mat = new LambertMaterial();
     var tex = new Texture();
     tex.setFileName("diffuse.png");
     mat.setTexture(Material.MAP_NORMAL, tex);
``` |

### setTransparency(double value) {#setTransparency-double-}

public void setTransparency(double value)



透明度係数を設定します。係数は 0(0%、完全に不透明)から 1(100%、完全に透明)の範囲である必要があります。無効な係数値はクランプされます。

**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| 値 | double | 新しい値 |

### toString() {#toString--}

public String toString()



オブジェクトを文字列にフォーマットします

**Returns:**
java.lang.String - オブジェクト文字列
### wait() {#wait--}

public final void wait()





### wait(long arg0) {#wait-long-}

public final void wait(long arg0)





**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}

public final void wait(long arg0, int arg1)





**Parameters:**
| パラメーター | 型 | 説明 |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |