PbrSpecularMaterial
Inheritance: java.lang.Object, com.aspose.threed.A3DObject, com.aspose.threed.Material
public class PbrSpecularMaterial extends Material
拡散カラー/スペキュラ/光沢に基づく物理ベースレンダリング用マテリアル。
コンストラクタ
| コンストラクタ | 説明 |
|---|---|
| PbrSpecularMaterial() | PbrSpecularMaterial のコンストラクタ |
フィールド
| フィールド | 説明 |
|---|---|
| MAP_AMBIENT | setTexture で環境光テクスチャマッピングを割り当てるために使用されます。 |
| MAP_DIFFUSE | setTexture で拡散テクスチャマッピングを割り当てるために使用されます。 |
| MAP_EMISSIVE | setTexture で放射テクスチャマッピングを割り当てるために使用されます。 |
| MAP_NORMAL | setTexture で法線テクスチャマッピングを割り当てるために使用されます。 |
| MAP_SPECULAR | setTexture で鏡面テクスチャマッピングを割り当てるために使用されます。 |
| MAP_SPECULAR_GLOSSINESS | 鏡面光沢用のテクスチャマップ |
メソッド
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:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
findProperty(String propertyName)
public Property findProperty(String propertyName)
プロパティを検索します。動的プロパティ(CreateDynamicProperty/SetProperty により作成)またはネイティブプロパティ(名前で識別)になる可能性があります。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| propertyName | java.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:
| パラメーター | 型 | 説明 |
|---|---|---|
| slotName | java.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:
| パラメーター | 型 | 説明 |
|---|---|---|
| property | Property | 削除するプロパティ |
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:
| パラメーター | 型 | 説明 |
|---|---|---|
| value | Vector3 | 新しい値 |
setDiffuseTexture(TextureBase value)
public void setDiffuseTexture(TextureBase value)
拡散用テクスチャを設定します
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| value | TextureBase | 新しい値 |
setEmissiveColor(Vector3 value)
public void setEmissiveColor(Vector3 value)
放射色を設定します。デフォルト値は (0, 0, 0) です。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| value | Vector3 | 新しい値 |
setEmissiveTexture(TextureBase value)
public void setEmissiveTexture(TextureBase value)
エミッシブ用のテクスチャを設定します
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| value | TextureBase | 新しい値 |
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:
| パラメーター | 型 | 説明 |
|---|---|---|
| value | TextureBase | 新しい値 |
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:
| パラメーター | 型 | 説明 |
|---|---|---|
| value | Vector3 | 新しい値 |
setSpecularGlossinessTexture(TextureBase value)
public void setSpecularGlossinessTexture(TextureBase value)
鏡面色用のテクスチャを設定します。RGB チャンネルが鏡面色を、A チャンネルが光沢を格納します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| value | TextureBase | 新しい値 |
setTexture(String slotName, TextureBase texture)
public void setTexture(String slotName, TextureBase texture)
テクスチャを指定されたスロットに設定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| slotName | java.lang.String | スロット名。 |
| texture | TextureBase |
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 | |